FIX: Surround passing in the wrong length.
This commit is contained in:
parent
d4f03cc0e1
commit
ff50e59c4f
|
@ -461,7 +461,7 @@ export default Ember.Component.extend({
|
|||
|
||||
this.set('value', `${pre}${contents}${post}`);
|
||||
if (lines.length === 1 && tlen > 0) {
|
||||
this._selectText(sel.start + hlen, contents.length - hlen - hlen);
|
||||
this._selectText(sel.start + hlen, sel.value.length);
|
||||
} else {
|
||||
this._selectText(sel.start, contents.length);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue