From 8c9247531128afcf4951d2c426f0aa2a965a4de4 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 23 Jan 2024 20:20:20 +0100 Subject: rly that was the fix --- src/i_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/i_events.go') 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 -- cgit v1.2.3