mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04:00
render: resize: temporarily disable row adjustment
This was intended to prevent a new prompt from being printed on a newline. However, it breaks normal output under certain conditions, that have yet to be determined exactly what they are.
This commit is contained in:
parent
c28c0ab9c2
commit
ea52d3e570
1 changed files with 3 additions and 0 deletions
3
render.c
3
render.c
|
|
@ -1057,6 +1057,7 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (empty_count < old_cols &&
|
if (empty_count < old_cols &&
|
||||||
|
r < old_rows - 1 &&
|
||||||
(old_row->cells[old_cols - 1].wc == 0 ||
|
(old_row->cells[old_cols - 1].wc == 0 ||
|
||||||
old_row->cells[old_cols - 1].attrs.linefeed))
|
old_row->cells[old_cols - 1].attrs.linefeed))
|
||||||
{
|
{
|
||||||
|
|
@ -1228,8 +1229,10 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
||||||
while (cursor_row < 0)
|
while (cursor_row < 0)
|
||||||
cursor_row += term->grid->num_rows;
|
cursor_row += term->grid->num_rows;
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (term->cursor.point.col < term->cols - 1)
|
if (term->cursor.point.col < term->cols - 1)
|
||||||
cursor_row--;
|
cursor_row--;
|
||||||
|
#endif
|
||||||
|
|
||||||
assert(cursor_row < term->rows);
|
assert(cursor_row < term->rows);
|
||||||
term_cursor_to(
|
term_cursor_to(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue