Change Alt-f in the REPL move to next end of word instead of beginning

This commit is contained in:
Andriamanitra 2023-10-14 14:21:16 +03:00
parent e3f4142d2a
commit 83204dc293
1 changed files with 2 additions and 2 deletions

View File

@ -502,10 +502,10 @@ static void kright(void) {
} }
static void krightw(void) { static void krightw(void) {
while (gbl_pos != gbl_len && !isspace(gbl_buf[gbl_pos])) { while (gbl_pos != gbl_len && isspace(gbl_buf[gbl_pos])) {
gbl_pos++; gbl_pos++;
} }
while (gbl_pos != gbl_len && isspace(gbl_buf[gbl_pos])) { while (gbl_pos != gbl_len && !isspace(gbl_buf[gbl_pos])) {
gbl_pos++; gbl_pos++;
} }
refresh(); refresh();