From 1b7454ca77c2160b1c30cdf6cd4c2792774f4470 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 21 Sep 2019 21:33:01 +0900 Subject: [PATCH] Fix: syuilo#3122 (#5435) --- src/client/app/common/views/directives/autocomplete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/common/views/directives/autocomplete.ts b/src/client/app/common/views/directives/autocomplete.ts index 40fe06c19a..3f68baa01b 100644 --- a/src/client/app/common/views/directives/autocomplete.ts +++ b/src/client/app/common/views/directives/autocomplete.ts @@ -240,7 +240,7 @@ class Autocomplete { // キャレットを戻す this.vm.$nextTick(() => { this.textarea.focus(); - const pos = trimmedBefore.length + (value.startsWith(':') ? value.length : 1); + const pos = trimmedBefore.length + value.length; this.textarea.setSelectionRange(pos, pos); }); }