summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.go b/app.go
index 7a70c6e..820a356 100644
--- a/app.go
+++ b/app.go
@@ -320,8 +320,9 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
func (app *App) handleKeyEvent(ev *tcell.EventKey) {
switch ev.Key() {
case tcell.KeyCtrlC:
- app.win.InputClear()
- app.typing()
+ if app.win.InputClear() {
+ app.typing()
+ }
case tcell.KeyCtrlL:
app.win.Resize()
case tcell.KeyCtrlU, tcell.KeyPgUp: