diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-18 17:04:27 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-18 17:04:27 +0200 |
| commit | 86c1b7aa58d9b8b9fe9c8579d4089157b3e62688 (patch) | |
| tree | 5417c0217dc1b54465b401c599b5c469e14c1c37 /internal/client/ui/core | |
| parent | a8d0606e922e83ae07b5814ad0ae849e7a7c5f28 (diff) | |
Implemented scrolling in viminput
Diffstat (limited to 'internal/client/ui/core')
| -rw-r--r-- | internal/client/ui/core/chat/chat.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index 501a779..00f5837 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -4,7 +4,6 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/kyren223/eko/internal/client/ui" "github.com/kyren223/eko/internal/client/ui/colors" "github.com/kyren223/eko/internal/client/ui/viminput" ) @@ -16,7 +15,7 @@ type Model struct { } func New() Model { - vi := viminput.New(90, ui.Height) + vi := viminput.New(90, 5) vi.Placeholder = "Send a message..." vi.PlaceholderStyle = lipgloss.NewStyle().Foreground(colors.Gray) vi.LineDecoration = func(lnum int, m viminput.Model) string { |
