mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Follow-up to r105423: Fix off-by-one bug.
This commit is contained in:
parent
49c286a67b
commit
51a40e4dbc
|
@ -200,7 +200,7 @@
|
|||
var txt = out[index - 1];
|
||||
txt.value += "'";
|
||||
if ( i > 0 ) {
|
||||
bolds = bolds.slice(0, i-1)
|
||||
bolds = bolds.slice(0, i)
|
||||
.concat(bolds.slice(i + 1, bolds.length - i - 1));
|
||||
} else {
|
||||
bolds.shift();
|
||||
|
|
Loading…
Reference in a new issue