mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
Merge pull request #2089 from dmitryuv/changesetslib-fixes
fix for infinite loop on bad changeset
This commit is contained in:
commit
cc03f5374c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue