termwindow: Show cursor only when his X and Y axis is smaller than the window (#3036)
This commit is contained in:
parent
d2ee6107a3
commit
bfc4b1d195
1 changed files with 3 additions and 1 deletions
|
@ -110,6 +110,8 @@ func (w *TermWindow) Display() {
|
||||||
}
|
}
|
||||||
if w.State.CursorVisible() && w.active {
|
if w.State.CursorVisible() && w.active {
|
||||||
curx, cury := w.State.Cursor()
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue