summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtzfr.eu>2020-08-22 12:17:43 +0200
committerHubert Hirtz <hubert@hirtzfr.eu>2020-08-22 12:17:43 +0200
commit271ec48374b142f35b74dad436b78ebcabc2a01f (patch)
treeb5b811183bef0540c1f5036a793a3d89890d8b80
parentdoc: Fix typos, improve wording somewhat (diff)
Don't send @+typing=done in the home buffer
-rw-r--r--app.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/app.go b/app.go
index 29941d5..bd84e1d 100644
--- a/app.go
+++ b/app.go
@@ -309,9 +309,12 @@ func (app *App) typing() {
return
}
buffer := app.win.CurrentBuffer()
+ if buffer == ui.Home {
+ return
+ }
if app.win.InputLen() == 0 {
app.s.TypingStop(buffer)
- } else if buffer != ui.Home && !app.win.InputIsCommand() {
+ } else if !app.win.InputIsCommand() {
app.s.Typing(app.win.CurrentBuffer())
}
}