1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-19 03:04:11 +00:00

Merge pull request #1310 from Andriamanitra/patch-forward-word

Change Alt-f in the REPL move to next end of word instead of beginning
This commit is contained in:
Calvin Rose
2023-10-14 18:36:05 -07:00
committed by GitHub

View File

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