diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-02-12 13:52:36 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-02-12 13:52:36 -0300 |
commit | fc4c39410d5db10e0af5f7698f66e54342f62053 (patch) | |
tree | 9a44b1187401ec0c3455140ab30ea203ad0bdb06 /src | |
parent | 2c55439a33935119d5a9581ae9f4ecc9271c031c (diff) |
Added HOME, END, PAGEUP and PAGEDOWN keys in help screen
Diffstat (limited to 'src')
-rw-r--r-- | src/help.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -130,15 +130,18 @@ void help() { break; case ctl('b'): + case OKEY_PGUP: if (delta - LINES/2 > 0) delta -= LINES/2; else if (delta) delta = 0; break; case ctl('f'): + case OKEY_PGDOWN: if (delta + LINES + LINES/2 < max) delta += LINES/2; else if (max > delta + LINES) delta = max - 1 - LINES; break; + case OKEY_END: case 'G': delta = max - LINES + RESROW; break; @@ -150,6 +153,7 @@ void help() { if (c != 'g') break; case ctl('a'): + case OKEY_HOME: delta = 0; break; |