mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
No longer push empty batches onto undo stack
This commit is contained in:
@@ -136,3 +136,12 @@ describe "UndoManager", ->
|
||||
|
||||
expect(buffer.lineForRow(4)).not.toContain("while")
|
||||
expect(buffer.lineForRow(4)).toContain("slongaz")
|
||||
|
||||
it "does not store empty batches", ->
|
||||
buffer.insert([0,0], "foo")
|
||||
undoManager.startUndoBatch()
|
||||
undoManager.endUndoBatch()
|
||||
|
||||
undoManager.undo()
|
||||
expect(buffer.lineForRow(0)).not.toContain("foo")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user