mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 05:36:09 +02:00
fix for infinite loop on bad changeset
This commit is contained in:
parent
ca8dce1840
commit
0e6019344e
@ -1867,7 +1867,7 @@ exports.inverse = function (cs, lines, alines, pool) {
|
||||
curLineOpIterLine = curLine;
|
||||
var indexIntoLine = 0;
|
||||
var done = false;
|
||||
while (!done) {
|
||||
while (!done && curLineOpIter.hasNext()) {
|
||||
curLineOpIter.next(curLineNextOp);
|
||||
if (indexIntoLine + curLineNextOp.chars >= curChar) {
|
||||
curLineNextOp.chars -= (curChar - indexIntoLine);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user