summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-29 16:21:40 +0200
committerKyren223 <Kyren223@proton.me>2025-01-29 16:21:40 +0200
commiteac9e1ad0961eabe622037551275c0880bc22e1c (patch)
tree86359b2f8825bd64b52672e05ba4d0b5feeac385 /internal
parent8c805499ece9cd32121e2a3366e86558609cfc50 (diff)
Pressing enter will now properly update the border of viminput
Diffstat (limited to 'internal')
-rw-r--r--internal/client/ui/core/chat/chat.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go
index c6c517e..5dda710 100644
--- a/internal/client/ui/core/chat/chat.go
+++ b/internal/client/ui/core/chat/chat.go
@@ -316,6 +316,8 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
m.SetIndex(Unselected)
case "enter":
if !m.vi.Inactive() {
+ m.borderStyle = ViFocusedBorder
+ m.style = focusStyle
m.locked = true
m.vi.SetMode(viminput.InsertMode)
m.base = SnapToBottom