summaryrefslogtreecommitdiff
path: root/internal/switcher
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 18:23:31 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 18:23:31 -0500
commit6cfbeaa63da850487853241708b848ff3195764c (patch)
treea92f3aae5dd0dfab3d7da1cdb12622113bda6903 /internal/switcher
parente39ab8eb36aa6bfde2e996fe0b23106dbee43ce5 (diff)
Fix color input width
Diffstat (limited to 'internal/switcher')
-rw-r--r--internal/switcher/switcher.go2
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())
}