diff options
Diffstat (limited to 'src/vterm/screen.c')
-rw-r--r-- | src/vterm/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vterm/screen.c b/src/vterm/screen.c index 97a8d50b93..720d1bb939 100644 --- a/src/vterm/screen.c +++ b/src/vterm/screen.c @@ -534,7 +534,7 @@ static void resize_buffer(VTermScreen *screen, int bufidx, int new_rows, int new while(old_row >= 0) { int old_row_end = old_row; /* TODO: Stop if dwl or dhl */ - while(REFLOW && old_lineinfo && old_row >= 0 && old_lineinfo[old_row].continuation) + while(REFLOW && old_lineinfo && old_row > 0 && old_lineinfo[old_row].continuation) old_row--; int old_row_start = old_row; @@ -596,7 +596,7 @@ static void resize_buffer(VTermScreen *screen, int bufidx, int new_rows, int new #endif if(new_row_start < 0) { - if(old_row_start <= old_cursor.row && old_cursor.row < old_row_end) { + if(old_row_start <= old_cursor.row && old_cursor.row <= old_row_end) { new_cursor.row = 0; new_cursor.col = old_cursor.col; if(new_cursor.col >= new_cols) |