aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-20 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-20 20:20:20 +0100
commit52498606aa3ce19844563f01a6c099a2a949bdf0 (patch)
tree721d5ea31d4acafccbd7faf3927e5eed5672196a /i_events.go
parentwip (diff)
downloadhardflip-52498606aa3ce19844563f01a6c099a2a949bdf0.tar.gz
hardflip-52498606aa3ce19844563f01a6c099a2a949bdf0.tar.bz2
hardflip-52498606aa3ce19844563f01a6c099a2a949bdf0.tar.xz
hardflip-52498606aa3ce19844563f01a6c099a2a949bdf0.tar.zst
hardflip-52498606aa3ce19844563f01a6c099a2a949bdf0.zip
gG
Diffstat (limited to 'i_events.go')
-rw-r--r--i_events.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/i_events.go b/i_events.go
index 524b612..74dbe06 100644
--- a/i_events.go
+++ b/i_events.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_events.go
- * Wed Dec 20 12:19:56 2023
+ * Wed Dec 20 16:17:19 2023
* Joe
*
* the hosts linked list
@@ -98,6 +98,12 @@ func i_events(data *Data,
*sel -= 1
}
}
+ if event.Rune() == 'g' {
+ *sel = 0
+ }
+ if event.Rune() == 'G' {
+ *sel = *sel_max - 1
+ }
if event.Rune() == 'D' {
i_delete_selected(data, sel)
i_reload_data(data, sel, sel_max)