summaryrefslogtreecommitdiff
path: root/cmd/irc/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/irc/main.go')
-rw-r--r--cmd/irc/main.go5
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()