Ensure new non-empty selections have an invisible cursor.

This commit is contained in:
Nathan Sobo
2013-04-04 17:48:02 -06:00
parent 34019951d3
commit 31579703f0
6 changed files with 19 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ class BufferMarker
isReversed: ->
@tailPosition? and @headPosition.isLessThan(@tailPosition)
hasTail: ->
@tailPosition?
getRange: ->
if @tailPosition
new Range(@tailPosition, @headPosition)