Tab stops are associated with anchors so we can jump to them event when the buffer changes

This commit is contained in:
Nathan Sobo
2012-06-22 12:07:20 -06:00
parent ae2b686802
commit 5c6e94ec74
4 changed files with 23 additions and 7 deletions

View File

@@ -239,6 +239,11 @@ class EditSession
@anchors.push(anchor)
anchor
addAnchorAtBufferPosition: (bufferPosition) ->
anchor = @addAnchor()
anchor.setBufferPosition(bufferPosition)
anchor
removeAnchor: (anchor) ->
_.remove(@anchors, anchor)