Skip to content

Commit 27ec446

Browse files
committed
[sublime bindings] Make by-sub-word motion more conformant to Sublime
Closes #6091
1 parent 3f901c5 commit 27ec446

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

keymap/sublime.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
} else if (state == "in") {
3333
if (type != cat) {
3434
if (type == "w" && cat == "W" && dir < 0) pos--;
35-
if (type == "W" && cat == "w" && dir > 0) { type = "w"; continue; }
35+
if (type == "W" && cat == "w" && dir > 0) { // From uppercase to lowercase
36+
if (pos == start.ch + 1) { type = "w"; continue; }
37+
else pos--;
38+
}
3639
break;
3740
}
3841
}

0 commit comments

Comments
 (0)