aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_keys.go')
-rw-r--r--src/e_keys.go9
1 files changed, 5 insertions, 4 deletions
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 ||