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:
parent
4b51b9288f
commit
b01d4d5a6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue