From 94a4f08467dc8aa53fbf4cf601945060c7a5e1fc Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 19 Apr 2020 12:50:26 -0400 Subject: [PATCH] Make suggestions popup insert wrapped emotes The suggestions popup will now insert wrapped emotes instead of bare word emotes. This is so the autocompletion will still work if the WrappedEmotesOnly setting is set to true. --- wasm/suggestions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/suggestions.go b/wasm/suggestions.go index f0a4f35..f5586a0 100644 --- a/wasm/suggestions.go +++ b/wasm/suggestions.go @@ -81,7 +81,7 @@ func processMessageKey(this js.Value, v []js.Value) interface{} { offset = 1 } - newval = newval[:i+offset] + currentSug + newval = newval[:i+offset] + ":" + currentSug + ":" } endVal := val[startIdx:]