mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Don't cancel a snippet if the cursor moves due to a buffer change
This commit is contained in:
@@ -22,12 +22,10 @@ class SnippetExpansion
|
||||
@editSession.normalizeTabsInBufferRange(newRange)
|
||||
@indentSubsequentLines(startPosition.row, snippet) if snippet.lineCount > 1
|
||||
|
||||
cursorMoved: ({oldBufferPosition, newBufferPosition}) ->
|
||||
return if @settingTabStop
|
||||
|
||||
cursorMoved: ({oldBufferPosition, newBufferPosition, bufferChanged}) ->
|
||||
return if @settingTabStop or bufferChanged
|
||||
oldTabStops = @tabStopsForBufferPosition(oldBufferPosition)
|
||||
newTabStops = @tabStopsForBufferPosition(newBufferPosition)
|
||||
|
||||
@destroy() unless _.intersect(oldTabStops, newTabStops).length
|
||||
|
||||
placeTabStopAnchorRanges: (startPosition, tabStopRanges) ->
|
||||
|
||||
Reference in New Issue
Block a user