diff --git a/lib/ace/selection.js b/lib/ace/selection.js index dd5435f1..4208fe01 100644 --- a/lib/ace/selection.js +++ b/lib/ace/selection.js @@ -668,7 +668,7 @@ var Selection = function(session) { while ((ch = rightOfCursor[index]) && whitespaceRe.test(ch)) index ++; - if (index <= 1) { + if (index < 1) { tokenRe.lastIndex = 0; while ((ch = rightOfCursor[index]) && !tokenRe.test(ch)) { tokenRe.lastIndex = 0;