Skip to content

Commit

Permalink
fix yposition and cursor when window size changed
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 26, 2023
1 parent 2d8d7c3 commit 90e1709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model.go
Expand Up @@ -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
Expand Down

0 comments on commit 90e1709

Please sign in to comment.