mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Fix bug in getCoveredSiblingGroups(): forgot to decrement i at the end
Change-Id: Iaba268e01000ac5a7ccfc6dfe23db624408e5234
This commit is contained in:
parent
c4e7544f60
commit
ce84277287
|
@ -470,6 +470,7 @@ ve.Document.prototype.getCoveredSiblingGroups = function( selection ) {
|
|||
siblingNode = siblingNode.getParent();
|
||||
}
|
||||
} while ( siblingNode.getParent() === parentNode );
|
||||
i--;
|
||||
lastEndOffset = parentNode.getOuterRange().end;
|
||||
}
|
||||
return groups;
|
||||
|
|
Loading…
Reference in a new issue