Skip to content

Commit

Permalink
[sublime bindings] Make by-sub-word motion more conformant to Sublime
Browse files Browse the repository at this point in the history
Closes #6091
  • Loading branch information
marijnh committed Dec 20, 2019
1 parent 3f901c5 commit 27ec446
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keymap/sublime.js
Expand Up @@ -32,7 +32,10 @@
} else if (state == "in") {
if (type != cat) {
if (type == "w" && cat == "W" && dir < 0) pos--;
if (type == "W" && cat == "w" && dir > 0) { type = "w"; continue; }
if (type == "W" && cat == "w" && dir > 0) { // From uppercase to lowercase
if (pos == start.ch + 1) { type = "w"; continue; }
else pos--;
}
break;
}
}
Expand Down

0 comments on commit 27ec446

Please sign in to comment.