mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Merge pull request #16544 from rosston/fix-cursor-movement
Fix includeNonWordCharacters regression in Cursor
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