From bb105cb16fe81ae29df5a5a5570e55c3e3ce0873 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 5 Dec 2024 17:20:32 +0200 Subject: Basic vim movement and text input --- internal/client/ui/core/chat/chat.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/client/ui/core') 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() } -- cgit v1.3.1