We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5949f97 commit 3e37ebfCopy full SHA for 3e37ebf
sshd/terminal/terminal.go
@@ -537,10 +537,9 @@ func (t *Terminal) handleKey(key rune) (line string, ok bool) {
537
keyEscape, '[', 'J',
538
}
539
t.queue(reset)
540
- // We're still technically on the same line. If we don't offset the
541
- // cursorX, then the fresh prompt could be rendered in the wrong
542
- // position.
543
- t.cursorX += len(reset)
+ // FIXME: This causes a slice out of bounds panic, but without it we
+ // get an offset with emojis
+ // t.cursorX += len(reset)
544
} else {
545
// Pushing the line up resets the cursor to 0,0 and we render a
546
// fresh prompt.
0 commit comments