From 83204dc2936febf6f9b42f540d0b0fe3ef3c5faa Mon Sep 17 00:00:00 2001 From: Andriamanitra Date: Sat, 14 Oct 2023 14:21:16 +0300 Subject: [PATCH] Change Alt-f in the REPL move to next end of word instead of beginning --- src/mainclient/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainclient/shell.c b/src/mainclient/shell.c index a85b2246..696fb352 100644 --- a/src/mainclient/shell.c +++ b/src/mainclient/shell.c @@ -502,10 +502,10 @@ static void kright(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++; } - while (gbl_pos != gbl_len && isspace(gbl_buf[gbl_pos])) { + while (gbl_pos != gbl_len && !isspace(gbl_buf[gbl_pos])) { gbl_pos++; } refresh();