diff --git a/edit/applies-to-line-widget.js b/edit/applies-to-line-widget.js index 9b7e5868..c2cddaae 100644 --- a/edit/applies-to-line-widget.js +++ b/edit/applies-to-line-widget.js @@ -151,7 +151,7 @@ function createAppliesToLineWidget(cm) { // decide search range const fromIndex = widgets[i] ? cm.indexFromPos({line: widgets[i].line.lineNo(), ch: 0}) : 0; - const toIndex = cm.indexFromPos({line: (widgets[j] ? widgets[j].line.lineNo() : toLine) + 1, ch: 0}); + const toIndex = cm.indexFromPos({line: widgets[j] ? widgets[j].line.lineNo() : toLine + 1, ch: 0}); // splice i = Math.max(0, i);