From f91073c362d55ba82c64e977300a1230be076ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 16 Nov 2019 10:54:21 +0100 Subject: [PATCH] term: add tab-stop list to terminal struct This list is intended to store tab stop columns --- terminal.c | 2 ++ terminal.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/terminal.c b/terminal.c index 2be46130..8b7d6fa2 100644 --- a/terminal.c +++ b/terminal.c @@ -504,6 +504,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl, .normal = {.damage = tll_init(), .scroll_damage = tll_init()}, .alt = {.damage = tll_init(), .scroll_damage = tll_init()}, .grid = &term->normal, + .tab_stops = tll_init(), .wl = wayl, .render = { .scrollback_lines = conf->scrollback_lines, @@ -727,6 +728,7 @@ term_destroy(struct terminal *term) tll_foreach(term->ptmx_buffer, it) free(it->item.data); tll_free(term->ptmx_buffer); + tll_free(term->tab_stops); int ret = EXIT_SUCCESS; diff --git a/terminal.h b/terminal.h index 5339d367..11cfd495 100644 --- a/terminal.h +++ b/terminal.h @@ -262,6 +262,8 @@ struct terminal { int max_x_advance; } fextents; + tll(int) tab_stops; + struct wayland *wl; struct wl_window *window;