summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tui.go b/tui.go
index 7bbbe3b..6cceb55 100644
--- a/tui.go
+++ b/tui.go
@@ -196,12 +196,12 @@ func init() {
SetFieldWidth(4).
SetAcceptanceFunc(tview.InputFieldInteger).
SetDoneFunc(func(key tcell.Key) {
+ defer indexPickWindow.SetText("")
pages.RemovePage(indexPage)
colorText()
updateStatusLine()
})
indexPickWindow.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
- defer indexPickWindow.SetText("")
switch event.Key() {
case tcell.KeyBackspace:
return event