Checking x/y seems problematic with ncurses.

This commit is contained in:
casey langen 2020-11-17 21:09:35 -08:00
parent d55071d228
commit 0e1e21e619

View File

@ -102,13 +102,9 @@ static inline void DrawCursor(IInput* input) {
WINDOW* content = inputWindow->GetContent();
if (content) {
wtimeout(content, IDLE_TIMEOUT_MS);
int currentX = 0, currentY = 0;
getyx(content, currentY, currentX);
const int targetY = 0;
const int targetX = (int) input->Position();
if (currentX != targetX || currentY != targetY) {
wmove(content, targetY, targetX);
}
wmove(content, targetY, targetX);
}
return;
}