mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
EditSession specs passing after converting Selection to use markers
Still a bit of a mess though...
This commit is contained in:
@@ -51,6 +51,12 @@ class BufferMarker
|
||||
getEndPosition: ->
|
||||
@getRange().end
|
||||
|
||||
placeTail: ->
|
||||
@setTailPosition(@headPosition) unless @tailPosition
|
||||
|
||||
clearTail: ->
|
||||
@tailPosition = null
|
||||
|
||||
observeHeadPosition: (callback) ->
|
||||
@headPositionObservers.push(callback)
|
||||
cancel: =>
|
||||
|
||||
Reference in New Issue
Block a user