mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Tab stops are associated with anchors so we can jump to them event when the buffer changes
This commit is contained in:
@@ -239,6 +239,11 @@ class EditSession
|
||||
@anchors.push(anchor)
|
||||
anchor
|
||||
|
||||
addAnchorAtBufferPosition: (bufferPosition) ->
|
||||
anchor = @addAnchor()
|
||||
anchor.setBufferPosition(bufferPosition)
|
||||
anchor
|
||||
|
||||
removeAnchor: (anchor) ->
|
||||
_.remove(@anchors, anchor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user