treat whitespace words of length 1 the same as others

without this multicursor doesn't work in cases like

foo: bar
a:   baz
This commit is contained in:
nightwing 2013-06-20 17:56:42 +04:00
commit b01d4d5a6b

View file

@ -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;