diff options
author | Hubert Hirtz <hubert.hirtz@laposte.net> | 2020-06-03 19:25:07 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert.hirtz@laposte.net> | 2020-06-03 19:25:07 +0200 |
commit | 2236a7d7b3df15cf0aea1b97f26dd89907ff8a55 (patch) | |
tree | 7012145f39f78531b3cb4863f4469143f71f245d /cmd | |
parent | Part Join Typing (diff) |
typing=done
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/irc/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/irc/main.go b/cmd/irc/main.go index 61ee39f..06db1cb 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -94,7 +94,10 @@ func main() { app.InputLeft() } case tcell.KeyBackspace2: - app.InputBackspace() + ok := app.InputBackspace() + if ok && app.InputLen() == 0 { + s.TypingStop(app.CurrentBuffer()) + } case tcell.KeyEnter: buffer := app.CurrentBuffer() input := app.InputEnter() |