commit afe9803
Hubert Hirtz
·
2020-08-16 15:17:42 +0000 UTC
parent f1791d1
Fix +typing=active being sent incorrectly Don't send it when the user starts typing a command (types '/' as the first char of the input)
1 files changed,
+1,
-1
M
app.go
M
app.go
+1,
-1
1@@ -250,7 +250,7 @@ func (app *App) handleUIEvent(ev tcell.Event) {
2 app.handleInput(buffer, input)
3 case tcell.KeyRune:
4 app.win.InputRune(ev.Rune())
5- if app.win.CurrentBuffer() != ui.Home && !app.win.InputIsCommand() {
6+ if app.win.CurrentBuffer() != ui.Home && !app.win.InputIsCommand() && !(app.win.InputLen() == 0 && ev.Rune() == '/') {
7 app.s.Typing(app.win.CurrentBuffer())
8 }
9 }