From 86c1b7aa58d9b8b9fe9c8579d4089157b3e62688 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 18 Dec 2024 17:04:27 +0200 Subject: Implemented scrolling in viminput --- internal/client/ui/core/chat/chat.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/client/ui/core/chat') 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 { -- cgit v1.3.1