summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())
}
}