From e04b5a74d7ec68b0e9ed186ea88dd4eb43d53ef8 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 9 Dec 2014 16:58:53 -0800 Subject: [PATCH] Fix position in Cursor::moveToBeginningOfPreviousParagraph Also, remove unused parameters to private Cursor methods --- src/cursor.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cursor.coffee b/src/cursor.coffee index 5759b884c..bb4a2e0f1 100644 --- a/src/cursor.coffee +++ b/src/cursor.coffee @@ -665,7 +665,7 @@ class Cursor extends Model autoscroll: (options) -> @editor.scrollToScreenRange(@getScreenRange(), options) - getBeginningOfNextParagraphBufferPosition: (editor) -> + getBeginningOfNextParagraphBufferPosition: -> start = @getBufferPosition() eof = @editor.getEofBufferPosition() scanRange = [start, eof] @@ -679,8 +679,8 @@ class Cursor extends Model stop() @editor.screenPositionForBufferPosition(position) - getBeginningOfPreviousParagraphBufferPosition: (editor) -> - start = @editor.getCursorBufferPosition() + getBeginningOfPreviousParagraphBufferPosition: -> + start = @getBufferPosition() {row, column} = start scanRange = [[row-1, column], [0,0]]