|
|
@ -272,8 +272,12 @@ func printToView(viewName string, message string) { |
|
|
|
updatingView, err := g.View(viewName) |
|
|
|
updatingView, err := g.View(viewName) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if UNICODE_EMOJI_SUPPORT { |
|
|
|
|
|
|
|
message = emojiUnicodeConvert(message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
fmt.Fprintf(updatingView, "%s\n", message) |
|
|
|
} |
|
|
|
} |
|
|
|
fmt.Fprintf(updatingView, "%s\n", message) |
|
|
|
|
|
|
|
return nil |
|
|
|
return nil |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -566,6 +570,7 @@ func handleInput(viewName string) error { |
|
|
|
cmd[0] = inputString[:1] |
|
|
|
cmd[0] = inputString[:1] |
|
|
|
RunCommand(cmd...) |
|
|
|
RunCommand(cmd...) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
inputString = resolveRootEmojis(inputString) |
|
|
|
go sendChat(inputString) |
|
|
|
go sendChat(inputString) |
|
|
|
} |
|
|
|
} |
|
|
|
// restore any tab completion view titles on input commit
|
|
|
|
// restore any tab completion view titles on input commit
|
|
|
|