summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-02-13 14:21:59 +0100
committerdelthas <delthas@dille.cc>2022-02-13 14:21:59 +0100
commit31f90336bed276b0ff9e71647a030c11fa838294 (patch)
tree0495b6d6698131a078fb0aaa703e5606aae03318 /app.go
parent/query: only send MONITOR, ... if the buffer is new (diff)
Make CTRL+C alternatively clear the input and set '/quit' in it
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.go b/app.go
index 086ba0c..8b52465 100644
--- a/app.go
+++ b/app.go
@@ -448,6 +448,8 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) {
case tcell.KeyCtrlC:
if app.win.InputClear() {
app.typing()
+ } else {
+ app.win.InputSet("/quit")
}
case tcell.KeyCtrlL:
app.win.Resize()