Use screenPosition to select above and below

This commit is contained in:
Antonio Scandurra
2015-03-13 10:57:45 +01:00
parent 7d77e90e45
commit f4b791d33b
3 changed files with 32 additions and 8 deletions

View File

@@ -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
###