Clear the alternate screen when switching to it
This commit is contained in:
parent
5cc6616e8a
commit
9e2653a55a
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user