From 90e1709118aa8fcf713ab6ed8b2bf16d0a579736 Mon Sep 17 00:00:00 2001 From: koki-develop Date: Sun, 26 Mar 2023 12:03:09 +0900 Subject: [PATCH] fix yposition and cursor when window size changed --- model.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model.go b/model.go index cff093b..857a958 100644 --- a/model.go +++ b/model.go @@ -225,6 +225,8 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.windowWidth = msg.Width m.windowHeight = msg.Height m.input.Width = m.windowWidth - m.promptWidth + m.fixYPosition() + m.fixCursor() } var cmds []tea.Cmd