Skip to content

Commit 90e1709

Browse files
committed
fix yposition and cursor when window size changed
1 parent 2d8d7c3 commit 90e1709

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

model.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
225225
m.windowWidth = msg.Width
226226
m.windowHeight = msg.Height
227227
m.input.Width = m.windowWidth - m.promptWidth
228+
m.fixYPosition()
229+
m.fixCursor()
228230
}
229231

230232
var cmds []tea.Cmd

0 commit comments

Comments
 (0)