@@ -148,7 +148,7 @@ func (s *Session) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
148 t.Dialog.InputPrompt.GetVerticalFrameSize() + inputContentHeight +
148 t.Dialog.InputPrompt.GetVerticalFrameSize() + inputContentHeight +
149 t.Dialog.HelpView.GetVerticalFrameSize() +
149 t.Dialog.HelpView.GetVerticalFrameSize() +
150 t.Dialog.View.GetVerticalFrameSize()
150 t.Dialog.View.GetVerticalFrameSize()
151− s.input.SetWidth(innerWidth - t.Dialog.InputPrompt.GetHorizontalFrameSize() - 1) // (1) cursor padding
151+ s.input.SetWidth(max(0, innerWidth-t.Dialog.InputPrompt.GetHorizontalFrameSize()-1)) // (1) cursor padding
152 s.list.SetSize(innerWidth, height-heightOffset)
152 s.list.SetSize(innerWidth, height-heightOffset)
153 s.help.SetWidth(innerWidth)
153 s.help.SetWidth(innerWidth)