aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/e_keys.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index 9f82ccc..af19547 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -401,7 +401,6 @@ func e_insert_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
}
if ui.insert_butt == false {
ui.insert_scroll += 2
- // TODO: gogo
}
} else if event.Rune() == 'k' ||
event.Key() == tcell.KeyUp {
@@ -842,14 +841,21 @@ func e_help_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
return true
} else if event.Rune() == 'j' ||
event.Key() == tcell.KeyDown {
+ if ui.help_end == true {
+ return true
+ }
ui.help_scroll += 1
} else if event.Rune() == 'k' ||
event.Key() == tcell.KeyUp {
- if ui.help_scroll >= 0 {
+ if ui.help_scroll <= 0 {
ui.help_scroll = 0
return true
}
ui.help_scroll -= 1
+ } else if event.Rune() == 'g' {
+ ui.help_scroll = 0
+ } else if event.Rune() == 'G' {
+ // TODO: here
}
return false
}