Merge pull request #5959 from atom/as-fix-select-above-below

Use screen ranges to select above and below
This commit is contained in:
Nathan Sobo
2015-03-16 11:26:54 -06:00
4 changed files with 132 additions and 16 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
###