fix: deprecate CursorStyle in favour of Cursor.Style

This commit is contained in:
Maas Lalani
2023-04-08 14:19:53 -04:00
parent 8865e0675a
commit ab1f7134e4
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ func New(items []Item, delegate ItemDelegate, width, height int) Model {
filterInput := textinput.New()
filterInput.Prompt = "Filter: "
filterInput.PromptStyle = styles.FilterPrompt
filterInput.CursorStyle = styles.FilterCursor
filterInput.Cursor.Style = styles.FilterCursor
filterInput.CharLimit = 64
filterInput.Focus()
+3 -1
View File
@@ -95,7 +95,9 @@ type Model struct {
PromptStyle lipgloss.Style
TextStyle lipgloss.Style
PlaceholderStyle lipgloss.Style
CursorStyle lipgloss.Style
// Deprecated: use Cursor.Style instead.
CursorStyle lipgloss.Style
// CharLimit is the maximum amount of characters this input element will
// accept. If 0 or less, there's no limit.