If the cursor is hidden we don't need to increase the age. We already do
this whenever the HIDE_CURSOR flag is changed.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
{
struct cell *c;
+ /* if cursor is hidden, just move it */
+ if (con->flags & TSM_SCREEN_HIDE_CURSOR) {
+ con->cursor_x = x;
+ con->cursor_y = y;
+ return;
+ }
+
+ /* If cursor is visible, we have to mark the current and the new cell
+ * as changed by resetting their age. We skip it if the cursor-position
+ * didn't actually change. */
+
if (con->cursor_x == x && con->cursor_y == y)
return;