From 7a3893c7bbbd6307ced4ffd88e9d164317fcb06f Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 3 Sep 2014 15:57:53 -0700 Subject: [PATCH] Update doc strings --- src/cursor.coffee | 3 ++- src/editor.coffee | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/cursor.coffee b/src/cursor.coffee index e91b8cbf1..ed34a1336 100644 --- a/src/cursor.coffee +++ b/src/cursor.coffee @@ -260,7 +260,7 @@ class Cursor extends Model # Public: Moves the cursor left one screen column. # - # * `columnCount` (optional) {Number} number of rows to move (default: 1) + # * `columnCount` (optional) {Number} number of columns to move (default: 1) # * `options` (optional) {Object} with the following keys: # * `moveToEndOfSelection` if true, move to the left of the selection if a # selection exists. @@ -286,6 +286,7 @@ class Cursor extends Model # Public: Moves the cursor right one screen column. # + # * `columnCount` (optional) {Number} number of columns to move (default: 1) # * `options` (optional) {Object} with the following keys: # * `moveToEndOfSelection` if true, move to the right of the selection if a # selection exists. diff --git a/src/editor.coffee b/src/editor.coffee index 7e4184466..9d88d976e 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -1619,7 +1619,7 @@ class Editor extends Model # Essential: Move every cursor up one row in screen coordinates. # - # * `lineCount` {Number} number of lines to move + # * `lineCount` (optional) {Number} number of lines to move moveUp: (lineCount) -> @moveCursors (cursor) -> cursor.moveUp(lineCount, moveToEndOfSelection: true) moveCursorUp: (lineCount) -> @@ -1628,7 +1628,7 @@ class Editor extends Model # Essential: Move every cursor down one row in screen coordinates. # - # * `lineCount` {Number} number of lines to move + # * `lineCount` (optional) {Number} number of lines to move moveDown: (lineCount) -> @moveCursors (cursor) -> cursor.moveDown(lineCount, moveToEndOfSelection: true) moveCursorDown: (lineCount) -> @@ -1636,6 +1636,8 @@ class Editor extends Model @moveDown(lineCount) # Essential: Move every cursor left one column. + # + # * `columnCount` (optional) {Number} number of columns to move (default: 1) moveLeft: (columnCount) -> @moveCursors (cursor) -> cursor.moveLeft(columnCount, moveToEndOfSelection: true) moveCursorLeft: -> @@ -1643,6 +1645,8 @@ class Editor extends Model @moveLeft() # Essential: Move every cursor right one column. + # + # * `columnCount` (optional) {Number} number of columns to move (default: 1) moveRight: (columnCount) -> @moveCursors (cursor) -> cursor.moveRight(columnCount, moveToEndOfSelection: true) moveCursorRight: ->