node merging undo can merge merged sets...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-30 02:56:03 +03:00
parent 426e8999ba
commit a24eb02876

View File

@ -1259,7 +1259,12 @@ var Outline = {
if(stack == null || stack.length == 0){
return this }
stack.push(
stack.splice(-n, n))
stack.splice(-n, n)
.map(function(e){
return typeof(e[1]) == 'string' ?
[e]
: e })
.flat())
return this },
clearUndo: function(){
this.__undo_stack = undefined