Fix: cm.findPosH in one line
This commit is contained in:
parent
0c64e6013b
commit
3844b3db73
|
@ -325,11 +325,7 @@ function createAppliesToLineWidget(cm) {
|
|||
cm.replaceRange(newText, range.from, range.to, 'appliesTo');
|
||||
input.mark = cm.markText(
|
||||
range.from,
|
||||
cm.findPosH(
|
||||
range.from,
|
||||
newText.length,
|
||||
'char'
|
||||
),
|
||||
cm.findPosH(range.from, newText.length, 'char'),
|
||||
{clearWhenEmpty: false}
|
||||
);
|
||||
input.text = newText;
|
||||
|
|
Loading…
Reference in New Issue
Block a user