From 1a5cf23f40951aad1e0fd753536b2dc42f393425 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Mar 2024 20:20:20 +0100 Subject: fuck its hard --- src/i_events.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/i_events.go') diff --git a/src/i_events.go b/src/i_events.go index 1bdb370..cc7c4be 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -575,6 +575,14 @@ func i_events(data *HardData) { if data.ui.insert_sel > 0 { data.ui.insert_sel -= 1 } + } else if event.Rune() == 'g' || + event.Rune() == 'h' || + event.Key() == tcell.KeyLeft { + data.ui.insert_sel = 0 + } else if event.Rune() == 'G' || + event.Rune() == 'l' || + event.Key() == tcell.KeyRight { + data.ui.insert_sel = data.ui.insert_sel_max } else if event.Key() == tcell.KeyEnter { data.ui.insert_sel_ok = true switch data.ui.insert_sel { -- cgit v1.2.3