Add redo state
This commit is contained in:
parent
3e7770aae1
commit
ad1d55eb9c
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@
|
|||
unique = gl.text.undoManager.addUniqueIfNotExists($thisTextarea)
|
||||
if not gl.text.undoManager.undoHistory[unique].length
|
||||
return
|
||||
latestUndo = gl.text.undoManager.undoHistory[unique].pop()
|
||||
gl.text.undoManager.history[unique].push(latestUndo)
|
||||
$thisTextarea.val(latestUndo.newVal)
|
||||
|
||||
gl.text.addListeners = () ->
|
||||
console.log('addListeners')
|
||||
|
|
Loading…
Reference in a new issue