aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-04 16:07:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-04 16:07:22 +0000
commit4919ccbc70dd4f890cd04154cbde7607baa3b150 (patch)
tree7dc9a47ce1b30bacecdc8b36ee1499ff163b492a /terminal.c
parentinput: ignore ISO Level 3 Shift (AltGr) when hiding the mouse cursor (diff)
term: remove unusued 'damage' list
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/terminal.c b/terminal.c
index ae4f3ee5..55ea840e 100644
--- a/terminal.c
+++ b/terminal.c
@@ -898,8 +898,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.start = {-1, -1},
.end = {-1, -1},
},
- .normal = {.damage = tll_init(), .scroll_damage = tll_init(), .sixel_images = tll_init()},
- .alt = {.damage = tll_init(), .scroll_damage = tll_init(), .sixel_images = tll_init()},
+ .normal = {.scroll_damage = tll_init(), .sixel_images = tll_init()},
+ .alt = {.scroll_damage = tll_init(), .sixel_images = tll_init()},
.grid = &term->normal,
.composed_count = 0,
.composed = NULL,
@@ -1408,9 +1408,7 @@ term_reset(struct terminal *term, bool hard)
}
term->normal.cur_row = term->normal.rows[0];
term->alt.cur_row = term->alt.rows[0];
- tll_free(term->normal.damage);
tll_free(term->normal.scroll_damage);
- tll_free(term->alt.damage);
tll_free(term->alt.scroll_damage);
term->render.last_cursor.row = NULL;
term->render.was_flashing = false;