mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Use getBufferRange() when previewing
This is for the case where the marker may move between construction and previewing.
This commit is contained in:
@@ -23,7 +23,7 @@ class Operation
|
||||
@getBufferRange() unless @preserveSelection
|
||||
|
||||
preview: ->
|
||||
range = @bufferRange
|
||||
range = @getBufferRange()
|
||||
prefix = @lineText[0...range.start.column]
|
||||
match = @lineText[range.start.column...range.end.column]
|
||||
suffix = @lineText[range.end.column..]
|
||||
|
||||
Reference in New Issue
Block a user