termptyops (termpty_cursor_copy): copy entire "cursor_state"
This commit is contained in:
parent
a3f9887ee4
commit
a0a2238272
|
@ -479,14 +479,12 @@ termpty_cursor_copy(Termpty *ty, Eina_Bool save)
|
||||||
{
|
{
|
||||||
if (save)
|
if (save)
|
||||||
{
|
{
|
||||||
ty->cursor_save[ty->altbuf].cx = ty->cursor_state.cx;
|
ty->cursor_save[ty->altbuf] = ty->cursor_state;
|
||||||
ty->cursor_save[ty->altbuf].cy = ty->cursor_state.cy;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ty->cursor_state.cx = ty->cursor_save[ty->altbuf].cx;
|
ty->cursor_state = ty->cursor_save[ty->altbuf];
|
||||||
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cx, 0, ty->w);
|
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cx, 0, ty->w);
|
||||||
ty->cursor_state.cy = ty->cursor_save[ty->altbuf].cy;
|
|
||||||
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cy, 0, ty->h);
|
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cy, 0, ty->h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue