From 6cf35ecca61f4e841f4cd480bf384dc1a4c53cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 14 May 2022 01:18:41 +0200 Subject: [PATCH] Add whitespace after auto-completed tag (#249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sascha Ißbrücker --- bookmarks/components/TagAutocomplete.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarks/components/TagAutocomplete.svelte b/bookmarks/components/TagAutocomplete.svelte index f1daf79..26d2dee 100644 --- a/bookmarks/components/TagAutocomplete.svelte +++ b/bookmarks/components/TagAutocomplete.svelte @@ -87,7 +87,7 @@ function complete(suggestion) { const bounds = getCurrentWordBounds(input); const value = input.value; - input.value = value.substring(0, bounds.start) + suggestion.name + value.substring(bounds.end); + input.value = value.substring(0, bounds.start) + suggestion.name + ' ' + value.substring(bounds.end); close(); }