We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5d3554 commit 86a87a2Copy full SHA for 86a87a2
1 file changed
keymap/sublime.js
@@ -144,8 +144,7 @@
144
cur = cm.getSearchCursor(query, Pos(cm.firstLine(), 0));
145
found = cur.findNext();
146
}
147
- if (!found || isSelectedRange(cm.listSelections(), cur.from(), cur.to()))
148
- return CodeMirror.Pass
+ if (!found || isSelectedRange(cm.listSelections(), cur.from(), cur.to())) return
149
cm.addSelection(cur.from(), cur.to());
150
151
if (fullWord)
@@ -175,7 +174,8 @@
175
174
176
function isSelectedRange(ranges, from, to) {
177
for (var i = 0; i < ranges.length; i++)
178
- if (ranges[i].from() == from && ranges[i].to() == to) return true
+ if (CodeMirror.cmpPos(ranges[i].from(), from) == 0 &&
+ CodeMirror.cmpPos(ranges[i].to(), to) == 0) return true
179
return false
180
181
0 commit comments