From b01d4d5a6be067caedc8b481920cf99eae5a5b35 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 20 Jun 2013 17:56:42 +0400 Subject: [PATCH] treat whitespace words of length 1 the same as others without this multicursor doesn't work in cases like foo: bar a: baz --- lib/ace/selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;