From 2fb6bb0bc03cd2a984e61b6beebbe9386e01a7e6 Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Sat, 26 Oct 2019 14:13:03 -0600 Subject: [PATCH] added emoji unicode and resolution support --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 27d9f95..386efcb 100644 --- a/main.go +++ b/main.go @@ -272,8 +272,12 @@ func printToView(viewName string, message string) { updatingView, err := g.View(viewName) if err != nil { return err + } else { + if UNICODE_EMOJI_SUPPORT { + message = emojiUnicodeConvert(message) + } + fmt.Fprintf(updatingView, "%s\n", message) } - fmt.Fprintf(updatingView, "%s\n", message) return nil }) } @@ -566,6 +570,7 @@ func handleInput(viewName string) error { cmd[0] = inputString[:1] RunCommand(cmd...) } else { + inputString = resolveRootEmojis(inputString) go sendChat(inputString) } // restore any tab completion view titles on input commit