From f170a2eb3ba93409472f901c1874c95f4f5f378e Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 28 Aug 2025 13:41:56 +0200 Subject: ye --- src/e_keys.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/e_keys.go') diff --git a/src/e_keys.go b/src/e_keys.go index 40e8bde..1e598b5 100644 --- a/src/e_keys.go +++ b/src/e_keys.go @@ -187,7 +187,12 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { ui.insert_sel_ok = false ui.insert_scroll = 0 } else if event.Key() == tcell.KeyCtrlR { + if err := ui.s.Suspend(); err != nil { + c_error_mode("screen", err, ui) + return true + } e_reload_data(data) + c_resume_or_die(ui) } else if event.Rune() == 'm' || event.Key() == tcell.KeyF7 { ui.mode = MKDIR_MODE @@ -275,10 +280,6 @@ func e_delete_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { return false } -func e_load_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { - return true -} - func e_error_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { if event.Rune() != 0 || event.Key() == tcell.KeyEscape || -- cgit v1.2.3