summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-22 12:12:58 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-22 12:12:58 +0300
commitbc49f37dce78f24f62eee1b4d5c8e41a3a38048a (patch)
tree2fb11fb0555530f9bfc7a9250e5c6eb64d7a5780 /tui.go
parent4d3d313ccf66a027cf743a3301f4719341f2cce2 (diff)
Enha: keep empty line between messages
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index 6f584fc..581ae4f 100644
--- a/tui.go
+++ b/tui.go
@@ -1254,7 +1254,6 @@ func init() {
// cannot send msg in editMode or botRespMode
if event.Key() == tcell.KeyEscape && !editMode && !botRespMode {
msgText := textArea.GetText()
-
if shellMode && msgText != "" {
// In shell mode, execute command instead of sending to LLM
executeCommandAndDisplay(msgText)
@@ -1262,7 +1261,7 @@ func init() {
return nil
} else if !shellMode {
// Normal mode - send to LLM
- nl := "\n"
+ nl := "\n\n" // keep empty lines between messages
prevText := textView.GetText(true)
persona := cfg.UserRole
// strings.LastIndex()