mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
termwindow: Show cursor only when his X and Y axis is smaller than the window (#3036)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user