We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c913e5 commit 24d86a8Copy full SHA for 24d86a8
lib/codemirror.js
@@ -4419,7 +4419,7 @@
4419
4420
// Revert a change stored in a document's history.
4421
function makeChangeFromHistory(doc, type, allowSelectionOnly) {
4422
- if (doc.cm && doc.cm.state.suppressEdits) return;
+ if (doc.cm && doc.cm.state.suppressEdits && !allowSelectionOnly) return;
4423
4424
var hist = doc.history, event, selAfter = doc.sel;
4425
var source = type == "undo" ? hist.done : hist.undone, dest = type == "undo" ? hist.undone : hist.done;
0 commit comments