mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Fix non-word char usage of current word cursor methods
Fixes a regression in 43aa3c788f
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user