Clear scrollback on reset

Fixes #631
This commit is contained in:
Kovid Goyal 2018-06-13 07:20:19 +05:30
parent 301d34fecf
commit f78d05a57f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -112,6 +112,7 @@ void
screen_reset(Screen *self) {
if (self->linebuf == self->alt_linebuf) screen_toggle_screen_buffer(self);
linebuf_clear(self->linebuf, BLANK_CHAR);
historybuf_clear(self->historybuf);
grman_clear(self->grman, false, self->cell_size);
self->modes = empty_modes;
#define R(name) self->color_profile->overridden.name = 0