summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtzfr.eu>2020-08-02 15:59:27 +0200
committerHubert Hirtz <hubert@hirtzfr.eu>2020-08-02 15:59:27 +0200
commit22f5b8292d83be4c1bf744cf51bd5e44980cb29b (patch)
treeb3a9c419f68d0bb45a6a73efabd26a9256bfe97e /cmd
parentShow 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.go2
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())
}
}