From c71f58a65231c3622ee7e5a1ea8529e35901efb2 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 29 Jan 2013 17:08:07 -0800 Subject: [PATCH] :lipstick: --- src/app/cursor.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/cursor.coffee b/src/app/cursor.coffee index aaffe22d6..c3e0a0591 100644 --- a/src/app/cursor.coffee +++ b/src/app/cursor.coffee @@ -55,6 +55,10 @@ class Cursor isVisible: -> @visible + wordRegExp: -> + nonWordCharacters = config.get("editor.nonWordCharacters") + new RegExp("^[\t ]*$|[^\\s#{_.escapeRegExp(nonWordCharacters)}]+|[#{_.escapeRegExp(nonWordCharacters)}]+", "mg") + isLastCursor: -> this == @editSession.getCursor() @@ -147,10 +151,6 @@ class Cursor if position = @getEndOfCurrentWordBufferPosition() @setBufferPosition(position) - wordRegExp: -> - nonWordCharacters = config.get("editor.nonWordCharacters") - new RegExp("^[\t ]*$|[^\\s#{_.escapeRegExp(nonWordCharacters)}]+|[#{_.escapeRegExp(nonWordCharacters)}]+", "mg") - getBeginningOfCurrentWordBufferPosition: (options = {}) -> allowPrevious = options.allowPrevious ? true currentBufferPosition = @getBufferPosition()