diff options
author | Joe <rbo@gmx.us> | 2024-03-29 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-29 20:20:20 +0100 |
commit | 1a5cf23f40951aad1e0fd753536b2dc42f393425 (patch) | |
tree | 4feafdc93aca3d1d4915da5c267c9dbf83fe1af0 /src/i_events.go | |
parent | oooooo (diff) | |
download | hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.gz hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.bz2 hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.xz hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.zst hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.zip |
fuck its hard
Diffstat (limited to 'src/i_events.go')
-rw-r--r-- | src/i_events.go | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |