Skip to content

Commit

Permalink
Allow editor-less documents to combine +-origin history events
Browse files Browse the repository at this point in the history
Closes #5316
  • Loading branch information
marijnh committed Mar 20, 2018
1 parent 45d5e05 commit 8a1479b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function addChangeToHistory(doc, change, selAfter, opId) {

if ((hist.lastOp == opId ||
hist.lastOrigin == change.origin && change.origin &&
((change.origin.charAt(0) == "+" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||
((change.origin.charAt(0) == "+" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||
change.origin.charAt(0) == "*")) &&
(cur = lastChangeEvent(hist, hist.lastOp == opId))) {
// Merge this change into the last event
Expand Down

0 comments on commit 8a1479b

Please sign in to comment.