Use a space as content placeholder when resizing

This commit is contained in:
Kovid Goyal 2021-10-25 20:05:26 +05:30
parent 472baf7337
commit 01ebc8f15a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -317,7 +317,8 @@ found:
// this is needed because screen_resize() checks to see if the cursor is beyond the content,
// so insert some fake content
Line *line = self->linebuf->line;
line->cpu_cells[0].ch = '>';
// we use a space as readline does not erase to bottom of screen so we fake it with spaces
line->cpu_cells[0].ch = ' ';
}
}
}