mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Merge pull request #5959 from atom/as-fix-select-above-below
Use screen ranges to select above and below
This commit is contained in:
@@ -1275,6 +1275,14 @@ class TextEditor extends Model
|
||||
# Returns a {Point}.
|
||||
clipScreenPosition: (screenPosition, options) -> @displayBuffer.clipScreenPosition(screenPosition, options)
|
||||
|
||||
# Extended: Clip the start and end of the given range to valid positions on screen.
|
||||
# See {::clipScreenPosition} for more information.
|
||||
#
|
||||
# * `range` The {Range} to clip.
|
||||
# * `options` (optional) See {::clipScreenPosition} `options`.
|
||||
# Returns a {Range}.
|
||||
clipScreenRange: (range, options) -> @displayBuffer.clipScreenRange(range, options)
|
||||
|
||||
###
|
||||
Section: Decorations
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user