1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-23 23:10:26 +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
commit 15d67e9191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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