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:
Daniel Eklöf 2020-02-12 20:16:42 +01:00
parent c28c0ab9c2
commit ea52d3e570
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1057,6 +1057,7 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
*/
if (empty_count < old_cols &&
r < old_rows - 1 &&
(old_row->cells[old_cols - 1].wc == 0 ||
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)
cursor_row += term->grid->num_rows;
#if 0
if (term->cursor.point.col < term->cols - 1)
cursor_row--;
#endif
assert(cursor_row < term->rows);
term_cursor_to(