diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-02 15:59:27 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-02 15:59:27 +0200 |
commit | 22f5b8292d83be4c1bf744cf51bd5e44980cb29b (patch) | |
tree | b3a9c419f68d0bb45a6a73efabd26a9256bfe97e /cmd | |
parent | Show incoming NOTICEs (diff) |
Improve line editing
Correctly support moving around the text and placing glyphs at any
position.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/irc/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/irc/main.go b/cmd/irc/main.go index 4e5db1e..151d99d 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -199,7 +199,7 @@ func handleUIEvent(app *ui.UI, s *irc.Session, ev tcell.Event) { handleInput(app, s, buffer, input) case tcell.KeyRune: app.InputRune(ev.Rune()) - if app.CurrentBuffer() != "home" && !strings.HasPrefix(app.Input(), "/") { + if app.CurrentBuffer() != "home" && !app.InputIsCommand() { s.Typing(app.CurrentBuffer()) } } |