Browse Source

added emoji unicode and resolution support

pull/34/head
David Haukeness 5 years ago
parent
commit
2fb6bb0bc0
No known key found for this signature in database
GPG Key ID: A7F1091956853EF9
  1. 7
      main.go

7
main.go

@ -272,8 +272,12 @@ func printToView(viewName string, message string) { @@ -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 { @@ -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

Loading…
Cancel
Save