Merge pull request #16544 from rosston/fix-cursor-movement

Fix includeNonWordCharacters regression in Cursor
This commit is contained in:
Max Brunsfeld
2018-01-29 09:55:26 -08:00
committed by GitHub

View File

@@ -524,7 +524,7 @@ class Cursor extends Model {
: new Range(new Point(position.row, 0), position)
const ranges = this.editor.buffer.findAllInRangeSync(
options.wordRegex || this.wordRegExp(),
options.wordRegex || this.wordRegExp(options),
scanRange
)
@@ -556,7 +556,7 @@ class Cursor extends Model {
: new Range(position, new Point(position.row, Infinity))
const ranges = this.editor.buffer.findAllInRangeSync(
options.wordRegex || this.wordRegExp(),
options.wordRegex || this.wordRegExp(options),
scanRange
)