mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Merge pull request #8494 from lpommers/documentation-selections-preserve-folds
📝 add preserveFolds documentation to setSelectedBufferRange(s)
This commit is contained in:
@@ -1839,6 +1839,8 @@ class TextEditor extends Model
|
||||
# * `options` (optional) An options {Object}:
|
||||
# * `reversed` A {Boolean} indicating whether to create the selection in a
|
||||
# reversed orientation.
|
||||
# * `preserveFolds` A {Boolean}, which if `true` preserves the fold settings after the
|
||||
# selection is set.
|
||||
setSelectedBufferRange: (bufferRange, options) ->
|
||||
@setSelectedBufferRanges([bufferRange], options)
|
||||
|
||||
@@ -1849,6 +1851,8 @@ class TextEditor extends Model
|
||||
# * `options` (optional) An options {Object}:
|
||||
# * `reversed` A {Boolean} indicating whether to create the selection in a
|
||||
# reversed orientation.
|
||||
# * `preserveFolds` A {Boolean}, which if `true` preserves the fold settings after the
|
||||
# selection is set.
|
||||
setSelectedBufferRanges: (bufferRanges, options={}) ->
|
||||
throw new Error("Passed an empty array to setSelectedBufferRanges") unless bufferRanges.length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user