aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
commitb1720fc06c9c0d9165c6947629756dac8bf7f87e (patch)
tree07578c79209af943200caf321077327b67c4b1f8 /i_events.go
parentpretty fast (diff)
downloadhardflip-b1720fc06c9c0d9165c6947629756dac8bf7f87e.tar.gz
hardflip-b1720fc06c9c0d9165c6947629756dac8bf7f87e.tar.bz2
hardflip-b1720fc06c9c0d9165c6947629756dac8bf7f87e.tar.xz
hardflip-b1720fc06c9c0d9165c6947629756dac8bf7f87e.tar.zst
hardflip-b1720fc06c9c0d9165c6947629756dac8bf7f87e.zip
cool
Diffstat (limited to 'i_events.go')
-rw-r--r--i_events.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/i_events.go b/i_events.go
index a5eb6a8..1d8dd20 100644
--- a/i_events.go
+++ b/i_events.go
@@ -128,8 +128,8 @@ func i_events(data *HardData) {
} else if event.Rune() == 'G' {
data.litems.curr = data.litems.last
} else if event.Rune() == 'D' &&
- data.ldirs.head != nil &&
- ui.sel_max != 0 {
+ data.ldirs.head != nil &&
+ ui.sel_max != 0 {
ui.mode = DELETE_MODE
} else if event.Key() == tcell.KeyEnter {
if data.litems.curr != nil &&
@@ -152,6 +152,7 @@ func i_events(data *HardData) {
if event.Key() == tcell.KeyCtrlR {
i_reload_data(data)
}
+ i_list_follow_cursor(data.litems, ui)
case DELETE_MODE:
if event.Key() == tcell.KeyEscape ||
event.Key() == tcell.KeyCtrlC ||
@@ -163,6 +164,5 @@ func i_events(data *HardData) {
ui.mode = NORMAL_MODE
}
}
- i_list_follow_cursor(data.litems, ui)
}
}