Follow-up to r105423: Fix off-by-one bug.

This commit is contained in:
Gabriel Wicke 2011-12-07 11:56:12 +00:00
parent 49c286a67b
commit 51a40e4dbc

View file

@ -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();