Fix non-word char usage of current word cursor methods

Fixes a regression in 43aa3c788f
This commit is contained in:
rosston
2018-01-11 21:40:21 -05:00
parent 30e4929db2
commit 5d6507b872

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
)