Skip to content

Commit b4b39e9

Browse files
committed
fix broken reverted-selection
i forgot to rename a use of a variable when i renamed its def
1 parent f2f5650 commit b4b39e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ var CodeMirror = (function() {
300300
// (and later restore it again), shouldn't be used for
301301
// non-movement keys.
302302
curKeyId = (mod ? "c" : "") + code;
303-
if (sel.inverted && movementKeys.hasOwnProperty(id)) {
303+
if (sel.inverted && movementKeys.hasOwnProperty(curKeyId)) {
304304
var range = selRange(input);
305305
if (range) {
306306
reducedSelection = {anchor: range.start};

0 commit comments

Comments
 (0)