Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Fix paste of text with line feed characters (#3043)
Giuseppe Lumia2a5302a1cf0e
diff --git a/readline/readline.go b/readline/readline.goindex 8ba7d89c3..6fa45391d 100644--- a/readline/readline.go+++ b/readline/readline.go@@ -218,7 +218,7 @@ func (i *Instance) Readline() (string, error) {case CharCtrlZ:fd := int(syscall.Stdin)return handleCharCtrlZ(fd, i.Terminal.termios)- case CharEnter:+ case CharEnter, CharCtrlJ:output := buf.String()if output != "" {i.History.Add([]rune(output))@@ -232,7 +232,7 @@ func (i *Instance) Readline() (string, error) {metaDel = falsecontinue}- if r >= CharSpace || r == CharEnter {+ if r >= CharSpace || r == CharEnter || r == CharCtrlJ {buf.Add(r)}}