Added better support for home/end
This commit is contained in:
parent
8e5b1497fa
commit
00653d0b11
4
ask.c
4
ask.c
@ -236,10 +236,10 @@ static char *get_input(FILE *in, FILE *out, const char *prompt, const char *init
|
||||
buf = NULL;
|
||||
picked = NULL;
|
||||
goto finished;
|
||||
case KEY_CTRL_A:
|
||||
case KEY_CTRL_A: case KEY_HOME:
|
||||
b = 0;
|
||||
break;
|
||||
case KEY_CTRL_E:
|
||||
case KEY_CTRL_E: case KEY_END:
|
||||
b = len;
|
||||
break;
|
||||
case KEY_CTRL_U: {
|
||||
|
Loading…
Reference in New Issue
Block a user