forked from enlightenment/terminology
fix changing state when swapping buffers. Closes T605
For some reason, this is not a real swap. Thanks to gregkh for the great bug report.
This commit is contained in:
parent
c93c431279
commit
05d091483a
|
@ -1013,16 +1013,16 @@ void
|
||||||
termpty_screen_swap(Termpty *ty)
|
termpty_screen_swap(Termpty *ty)
|
||||||
{
|
{
|
||||||
Termcell *tmp_screen;
|
Termcell *tmp_screen;
|
||||||
Termstate tmp_state;
|
|
||||||
int tmp_circular_offset;
|
int tmp_circular_offset;
|
||||||
|
|
||||||
tmp_screen = ty->screen;
|
tmp_screen = ty->screen;
|
||||||
ty->screen = ty->screen2;
|
ty->screen = ty->screen2;
|
||||||
ty->screen2 = tmp_screen;
|
ty->screen2 = tmp_screen;
|
||||||
|
|
||||||
tmp_state = ty->state;
|
if (ty->altbuf)
|
||||||
ty->state = ty->swap;
|
ty->state = ty->swap;
|
||||||
ty->swap = tmp_state;
|
else
|
||||||
|
ty->swap = ty->state;
|
||||||
|
|
||||||
tmp_circular_offset = ty->circular_offset;
|
tmp_circular_offset = ty->circular_offset;
|
||||||
ty->circular_offset = ty->circular_offset2;
|
ty->circular_offset = ty->circular_offset2;
|
||||||
|
|
Loading…
Reference in New Issue