diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-09-21 21:33:01 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-21 21:33:01 +0900 |
| commit | 1b7454ca77c2160b1c30cdf6cd4c2792774f4470 (patch) | |
| tree | 1ff8354a915f894e42b77b9d0a92ddffb978aa7e /src | |
| parent | 絵文字ピッカーの Unicode 12.0 対応など (#5441) (diff) | |
| download | misskey-1b7454ca77c2160b1c30cdf6cd4c2792774f4470.tar.gz misskey-1b7454ca77c2160b1c30cdf6cd4c2792774f4470.tar.bz2 misskey-1b7454ca77c2160b1c30cdf6cd4c2792774f4470.zip | |
Fix: syuilo#3122 (#5435)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/directives/autocomplete.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); } |