termwindow: Show cursor only when his X and Y axis is smaller than the window (#3036)

This commit is contained in:
Jöran Karl
2024-03-13 20:58:44 +01:00
committed by GitHub
parent d2ee6107a3
commit bfc4b1d195

View File

@@ -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)
}
}
}