From 5d6507b872782904cb5400d63f6e669762032e1a Mon Sep 17 00:00:00 2001 From: rosston Date: Thu, 11 Jan 2018 21:40:21 -0500 Subject: [PATCH] Fix non-word char usage of current word cursor methods Fixes a regression in 43aa3c788fd10fe9879f1cf27d37d94df855d276 --- src/cursor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cursor.js b/src/cursor.js index 41e47bb75..929dc741f 100644 --- a/src/cursor.js +++ b/src/cursor.js @@ -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 )