Skip to content

Commit

Permalink
Fix abe33#93 Issue
Browse files Browse the repository at this point in the history
Reference source
abe33#93 (comment)
  • Loading branch information
k-utsumi authored Oct 25, 2018
1 parent fc5f07c commit b78da27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/table-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,8 +1306,10 @@ class TableElement extends HTMLElement {
const cursorValue = cursor.getValue()
this.editor.setText(String(cursorValue || this.getUndefinedDisplay()))

this.editor.getBuffer().history.clearUndoStack()
this.editor.getBuffer().history.clearRedoStack()
if (this.editor.getBuffer().history != undefined) {
this.editor.getBuffer().history.clearUndoStack()
this.editor.getBuffer().history.clearRedoStack()
}

if (initialData) { this.editor.setText(initialData) }
}
Expand Down

0 comments on commit b78da27

Please sign in to comment.