Clear the alternate screen when switching to it

This commit is contained in:
Kovid Goyal 2016-12-29 16:40:46 +05:30
parent 5cc6616e8a
commit 9e2653a55a

View File

@ -351,6 +351,7 @@ END_ALLOW_CASE_RANGE
void screen_toggle_screen_buffer(Screen *self) {
screen_save_cursor(self);
if (self->linebuf == self->main_linebuf) {
linebuf_clear(self->alt_linebuf, ' ');
self->linebuf = self->alt_linebuf;
self->tabstops = self->alt_tabstops;
} else {