summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/directives/autocomplete.ts2
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);
});
}