mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
No longer push empty batches onto undo stack
This commit is contained in:
@@ -40,7 +40,7 @@ class UndoManager
|
||||
|
||||
endUndoBatch: (ranges) ->
|
||||
@currentBatch.newSelectionRanges = ranges
|
||||
@undoHistory.push(@currentBatch)
|
||||
@undoHistory.push(@currentBatch) if @currentBatch.length > 0
|
||||
@currentBatch = null
|
||||
|
||||
preservingHistory: (fn) ->
|
||||
|
||||
Reference in New Issue
Block a user