aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 2c408fe..228aedf 100644
--- a/noice.c
+++ b/noice.c
@@ -54,6 +54,8 @@ enum action {
SEL_PREV,
SEL_PGDN,
SEL_PGUP,
+ SEL_HOME,
+ SEL_END,
SEL_CD,
SEL_MTIME,
SEL_REDRAW,
@@ -827,6 +829,12 @@ moretyping:
if (cur > 0)
cur -= MIN((LINES - 4) / 2, cur);
break;
+ case SEL_HOME:
+ cur = 0;
+ break;
+ case SEL_END:
+ cur = n - 1;
+ break;
case SEL_CD:
/* Read target dir */
printprompt("chdir: ");