From ea52d3e570c13c820633373522c3fe1f0e6b6e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 12 Feb 2020 20:16:42 +0100 Subject: [PATCH] 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. --- render.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/render.c b/render.c index e854b6b0..27dfb86c 100644 --- a/render.c +++ b/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 && + 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(