summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/chat/chat.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-05 17:20:32 +0200
committerKyren223 <Kyren223@proton.me>2024-12-05 17:20:32 +0200
commitbb105cb16fe81ae29df5a5a5570e55c3e3ce0873 (patch)
tree011538d2e0bb119b90801f36cf376a3482793935 /internal/client/ui/core/chat/chat.go
parent8087907b4b942c7d8c9296c3fd0e1f08d5d88694 (diff)
Basic vim movement and text input
Diffstat (limited to 'internal/client/ui/core/chat/chat.go')
-rw-r--r--internal/client/ui/core/chat/chat.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go
index 04eedb7..a93272f 100644
--- a/internal/client/ui/core/chat/chat.go
+++ b/internal/client/ui/core/chat/chat.go
@@ -23,7 +23,7 @@ func New() Model {
return lineNumber + " ┃ "
}
- vi.SetLines(viminput.Line("test"), viminput.Line("best"))
+ vi.SetLines([]rune("test"), []rune("best"))
// ta.Cursor.SetChar()
// vi.CharLimit = 280
@@ -54,8 +54,10 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
func (m *Model) Focus() {
m.focus = true
+ m.vi.Focus()
}
func (m *Model) Blur() {
m.focus = false
+ m.vi.Blur()
}