Skip to content

Commit

Permalink
Merge pull request #1310 from Andriamanitra/patch-forward-word
Browse files Browse the repository at this point in the history
Change Alt-f in the REPL move to next end of word instead of beginning
  • Loading branch information
bakpakin authored Oct 15, 2023
2 parents b5996f5 + 83204dc commit 15d67e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainclient/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 15d67e9

Please sign in to comment.