FIX: Surround passing in the wrong length.

This commit is contained in:
Guo Xiang Tan 2016-06-17 11:29:37 +08:00
parent d4f03cc0e1
commit ff50e59c4f
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 1 additions and 1 deletions

View File

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