summaryrefslogtreecommitdiff
path: root/internal/switcher/switcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/switcher/switcher.go')
-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())
}