This commit is contained in:
Nicolas Constant 2020-06-03 20:15:26 -04:00
parent 5674127e28
commit 734d2ae161
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 2 deletions

View File

@ -688,7 +688,6 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
this.status = this.replacePatternWithAutosuggest(this.status, selection.pattern, selection.autosuggest);
let cleanStatus = this.status.replace(/\r?\n/g, ' ');
console.warn([cleanStatus]);
let newCaretPosition = cleanStatus.indexOf(`${selection.autosuggest}`) + selection.autosuggest.length;
if (newCaretPosition > cleanStatus.length) newCaretPosition = cleanStatus.length;