Skip to content

Commit

Permalink
termwindow: Show cursor only when his Y axis is smaller than the wind…
Browse files Browse the repository at this point in the history
…ow heigh
  • Loading branch information
JoeKar committed Nov 23, 2023
1 parent d8e9d61 commit c3f9428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/display/termwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (w *TermWindow) Display() {
}
if w.State.CursorVisible() && w.active {
curx, cury := w.State.Cursor()
screen.ShowCursor(curx+w.X, cury+w.Y)
if cury < w.Height {
screen.ShowCursor(curx+w.X, cury+w.Y)
}
}
}

0 comments on commit c3f9428

Please sign in to comment.