aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
commit8c9247531128afcf4951d2c426f0aa2a965a4de4 (patch)
tree64cbd67b3195d9922e975b0aeab6272270e00bf4 /src/i_events.go
parentgood loading errmsg (diff)
downloadhardflip-8c9247531128afcf4951d2c426f0aa2a965a4de4.tar.gz
hardflip-8c9247531128afcf4951d2c426f0aa2a965a4de4.tar.bz2
hardflip-8c9247531128afcf4951d2c426f0aa2a965a4de4.tar.xz
hardflip-8c9247531128afcf4951d2c426f0aa2a965a4de4.tar.zst
hardflip-8c9247531128afcf4951d2c426f0aa2a965a4de4.zip
rly that was the fix
Diffstat (limited to '')
-rw-r--r--src/i_events.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 7ca1511..f0ee03b 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -170,7 +170,6 @@ func i_reload_data(data *HardData) {
g_load_count = -1
data.ldirs, data.litems, data.load_err = i_load_ui(data.data_dir, data.opts,
&data.ui)
- // FIX: must input to start reloading for some reason
data.folds = make(map[*DirsNode]*ItemsList)
}
@@ -344,6 +343,7 @@ func i_events(data *HardData) {
}
case ERROR_MODE:
if event.Rune() != 0 ||
+ event.Key() == tcell.KeyEscape ||
event.Key() == tcell.KeyEnter {
ui.mode = NORMAL_MODE
data.load_err = nil