mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Surround passing in the wrong length.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user