forked from enlightenment/terminology
reflow: fix setting cursor position on vertical shrink
This commit is contained in:
parent
66e8493154
commit
ea60fdf9a4
|
@ -1093,7 +1093,7 @@ shrink_screen:
|
||||||
cells = &TERMPTY_SCREEN(ty, 0, y);
|
cells = &TERMPTY_SCREEN(ty, 0, y);
|
||||||
len = termpty_line_length(cells, ty->w);
|
len = termpty_line_length(cells, ty->w);
|
||||||
termpty_text_save_top(ty, cells, len);
|
termpty_text_save_top(ty, cells, len);
|
||||||
ty->state.cy++;
|
ty->state.cy--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
y++;
|
y++;
|
||||||
|
@ -1103,6 +1103,8 @@ shrink_screen:
|
||||||
}
|
}
|
||||||
if (ty->state.cy >= ty->h)
|
if (ty->state.cy >= ty->h)
|
||||||
ty->state.cy = ty->h - 1;
|
ty->state.cy = ty->h - 1;
|
||||||
|
else if (ty->state.cy < 0)
|
||||||
|
ty->state.cy = 0;
|
||||||
|
|
||||||
free(screen_lengths);
|
free(screen_lengths);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue