mirror of
https://github.com/atom/atom.git
synced 2026-02-17 18:11:29 -05:00
Fix some docs issues
This commit is contained in:
@@ -249,7 +249,7 @@ class Cursor
|
||||
# Public: Retrieves the buffer position of where the current word starts.
|
||||
#
|
||||
# options - A hash with one option:
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {wordRegExp})
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {Cursor.wordRegExp})
|
||||
#
|
||||
# Returns a {Range}.
|
||||
getBeginningOfCurrentWordBufferPosition: (options = {}) ->
|
||||
@@ -270,7 +270,7 @@ class Cursor
|
||||
# Public: Retrieves the buffer position of where the current word ends.
|
||||
#
|
||||
# options - A hash with one option:
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {wordRegExp})
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {Cursor.wordRegExp})
|
||||
#
|
||||
# Returns a {Range}.
|
||||
getEndOfCurrentWordBufferPosition: (options = {}) ->
|
||||
@@ -290,7 +290,7 @@ class Cursor
|
||||
# Public: Retrieves the buffer position of where the next word starts.
|
||||
#
|
||||
# options - A hash with one option:
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {wordRegExp})
|
||||
# :wordRegex - A {RegExp} indicating what constitutes a "word" (default: {Cursor.wordRegExp})
|
||||
#
|
||||
# Returns a {Range}.
|
||||
getBeginningOfNextWordBufferPosition: (options = {}) ->
|
||||
|
||||
@@ -288,7 +288,7 @@ class Selection
|
||||
# Public: Indents the selection.
|
||||
#
|
||||
# options - A hash with one key, `autoIndent`. If `true`, the indentation is
|
||||
# performed appropriately. Otherwise, {EditSession#getTabText} is used
|
||||
# performed appropriately. Otherwise, {EditSession.getTabText} is used
|
||||
indent: ({ autoIndent }={})->
|
||||
{ row, column } = @cursor.getBufferPosition()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user