From b1720fc06c9c0d9165c6947629756dac8bf7f87e Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 8 Jan 2024 20:20:20 +0100 Subject: cool --- i_events.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i_events.go') 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) } } -- cgit v1.2.3