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();