diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 18:23:31 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 18:23:31 -0500 |
commit | 6cfbeaa63da850487853241708b848ff3195764c (patch) | |
tree | a92f3aae5dd0dfab3d7da1cdb12622113bda6903 | |
parent | e39ab8eb36aa6bfde2e996fe0b23106dbee43ce5 (diff) |
Fix color input width
-rw-r--r-- | internal/switcher/switcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/switcher/switcher.go b/internal/switcher/switcher.go index e0b9579..bd58fe9 100644 --- a/internal/switcher/switcher.go +++ b/internal/switcher/switcher.go @@ -137,7 +137,7 @@ func (m Model) View() string { var inputStr string if m.input.Focused() { - m.input.Width = w + m.input.Width = w - lipgloss.Width(ui.PromptPrefix) - 1 inputStr = ui.Style().Boxed.Render(m.input.View()) } |