mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Implemented HOME and END keys during input
This commit is contained in:
parent
22dd55b154
commit
525c04d7ae
10
input_win.c
10
input_win.c
@ -198,6 +198,14 @@ static int _handle_edit(const int ch, char *input, int *size)
|
||||
_replace_input(input, next, size);
|
||||
return 1;
|
||||
|
||||
case KEY_HOME:
|
||||
wmove(inp_win, inp_y, 1);
|
||||
return 1;
|
||||
|
||||
case KEY_END:
|
||||
wmove(inp_win, inp_y, (*size) + 1);
|
||||
return 1;
|
||||
|
||||
case 9: // tab
|
||||
if ((strncmp(input, "/msg ", 5) == 0) && (*size > 5)) {
|
||||
for(i = 5; i < *size; i++) {
|
||||
@ -215,7 +223,7 @@ static int _handle_edit(const int ch, char *input, int *size)
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user