If the user attempts to switch tab stops while the cursor is not *on* a tab stop, the snippet is terminated

This commit is contained in:
Nathan Sobo
2012-06-26 22:42:06 -06:00
parent 01993f1be2
commit 6db42114f9
3 changed files with 41 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ class AnchorRange
getScreenRange: ->
new Range(@startAnchor.getScreenPosition(), @endAnchor.getScreenPosition())
containsBufferPosition: (bufferPosition) ->
@getBufferRange().containsPoint(bufferPosition)
destroy: ->
@startAnchor.destroy()
@endAnchor.destroy()