mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-15 08:30:36 +03:00
parent
5949f9792f
commit
3e37ebf85a
@ -537,10 +537,9 @@ func (t *Terminal) handleKey(key rune) (line string, ok bool) {
|
|||||||
keyEscape, '[', 'J',
|
keyEscape, '[', 'J',
|
||||||
}
|
}
|
||||||
t.queue(reset)
|
t.queue(reset)
|
||||||
// We're still technically on the same line. If we don't offset the
|
// FIXME: This causes a slice out of bounds panic, but without it we
|
||||||
// cursorX, then the fresh prompt could be rendered in the wrong
|
// get an offset with emojis
|
||||||
// position.
|
// t.cursorX += len(reset)
|
||||||
t.cursorX += len(reset)
|
|
||||||
} else {
|
} else {
|
||||||
// Pushing the line up resets the cursor to 0,0 and we render a
|
// Pushing the line up resets the cursor to 0,0 and we render a
|
||||||
// fresh prompt.
|
// fresh prompt.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user