mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Always wrap marker screen positions at soft newlines
This commit is contained in:
@@ -316,7 +316,7 @@ class DisplayBuffer
|
||||
delete @markerScreenPositions[id]
|
||||
|
||||
getMarkerScreenRange: (id) ->
|
||||
@screenRangeForBufferRange(@getMarkerBufferRange(id))
|
||||
@screenRangeForBufferRange(@getMarkerBufferRange(id), wrapAtSoftNewlines: true)
|
||||
|
||||
setMarkerScreenRange: (id, screenRange, options) ->
|
||||
@setMarkerBufferRange(id, @bufferRangeForScreenRange(screenRange), options)
|
||||
@@ -334,7 +334,7 @@ class DisplayBuffer
|
||||
@getMarkerHeadBufferPosition(id)
|
||||
|
||||
getMarkerHeadScreenPosition: (id) ->
|
||||
@screenPositionForBufferPosition(@getMarkerHeadBufferPosition(id))
|
||||
@screenPositionForBufferPosition(@getMarkerHeadBufferPosition(id), wrapAtSoftNewlines: true)
|
||||
|
||||
setMarkerHeadScreenPosition: (id, screenPosition, options) ->
|
||||
screenPosition = @clipScreenPosition(screenPosition, options)
|
||||
@@ -347,7 +347,7 @@ class DisplayBuffer
|
||||
@buffer.setMarkerHeadPosition(id, bufferPosition)
|
||||
|
||||
getMarkerTailScreenPosition: (id) ->
|
||||
@screenPositionForBufferPosition(@getMarkerTailBufferPosition(id))
|
||||
@screenPositionForBufferPosition(@getMarkerTailBufferPosition(id), wrapAtSoftNewlines: true)
|
||||
|
||||
setMarkerTailScreenPosition: (id, screenPosition, options) ->
|
||||
screenPosition = @clipScreenPosition(screenPosition, options)
|
||||
@@ -374,7 +374,7 @@ class DisplayBuffer
|
||||
@markerScreenPositionObservers[id].head.push(callback)
|
||||
subscription = @buffer.observeMarkerHeadPosition id, (bufferPosition) =>
|
||||
@cacheMarkerScreenPositions(id)
|
||||
callback(@screenPositionForBufferPosition(bufferPosition))
|
||||
callback(@getMarkerHeadScreenPosition(id))
|
||||
|
||||
cancel: =>
|
||||
subscription.cancel()
|
||||
|
||||
Reference in New Issue
Block a user