fix: cursor actually need to take the renderer too

This commit is contained in:
Carlos Alexandro Becker
2024-02-26 14:09:54 -03:00
parent 577d38ac6f
commit 5fe4706dff
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ func New(ctx *tea.Context) Model {
PlaceholderStyle: r.NewStyle().Foreground(lipgloss.Color("240")),
ShowSuggestions: false,
CompletionStyle: r.NewStyle().Foreground(lipgloss.Color("240")),
Cursor: cursor.New(),
Cursor: cursor.New(ctx),
KeyMap: DefaultKeyMap,
suggestions: [][]rune{},