Skip to content

Commit

Permalink
termwindow: Show cursor only when his X and Y axis is smaller than th…
Browse files Browse the repository at this point in the history
…e window (#3036)
  • Loading branch information
JoeKar authored Mar 13, 2024
1 parent d2ee610 commit bfc4b1d
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 curx < w.Width && cury < w.Height {
screen.ShowCursor(curx+w.X, cury+w.Y)
}
}
}

0 comments on commit bfc4b1d

Please sign in to comment.