term: reset: set 'origin' to ORIGIN_ABSOLUTE

This commit is contained in:
Daniel Eklöf 2019-11-30 00:32:06 +01:00
parent 8274e3e034
commit a81c65caa2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -857,6 +857,7 @@ term_reset(struct terminal *term, bool hard)
term->colors.bg = term->colors.default_bg;
for (size_t i = 0; i < 256; i++)
term->colors.table[i] = term->colors.default_table[i];
term->origin = ORIGIN_ABSOLUTE;
term->cursor.lcf = false;
term->cursor = (struct cursor){.point = {0, 0}};
term->saved_cursor = (struct cursor){.point = {0, 0}};