mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
term: add tab-stop list to terminal struct
This list is intended to store tab stop columns
This commit is contained in:
parent
35c56765a4
commit
f91073c362
2 changed files with 4 additions and 0 deletions
|
|
@ -504,6 +504,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||||
.normal = {.damage = tll_init(), .scroll_damage = tll_init()},
|
.normal = {.damage = tll_init(), .scroll_damage = tll_init()},
|
||||||
.alt = {.damage = tll_init(), .scroll_damage = tll_init()},
|
.alt = {.damage = tll_init(), .scroll_damage = tll_init()},
|
||||||
.grid = &term->normal,
|
.grid = &term->normal,
|
||||||
|
.tab_stops = tll_init(),
|
||||||
.wl = wayl,
|
.wl = wayl,
|
||||||
.render = {
|
.render = {
|
||||||
.scrollback_lines = conf->scrollback_lines,
|
.scrollback_lines = conf->scrollback_lines,
|
||||||
|
|
@ -727,6 +728,7 @@ term_destroy(struct terminal *term)
|
||||||
tll_foreach(term->ptmx_buffer, it)
|
tll_foreach(term->ptmx_buffer, it)
|
||||||
free(it->item.data);
|
free(it->item.data);
|
||||||
tll_free(term->ptmx_buffer);
|
tll_free(term->ptmx_buffer);
|
||||||
|
tll_free(term->tab_stops);
|
||||||
|
|
||||||
int ret = EXIT_SUCCESS;
|
int ret = EXIT_SUCCESS;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,8 @@ struct terminal {
|
||||||
int max_x_advance;
|
int max_x_advance;
|
||||||
} fextents;
|
} fextents;
|
||||||
|
|
||||||
|
tll(int) tab_stops;
|
||||||
|
|
||||||
struct wayland *wl;
|
struct wayland *wl;
|
||||||
struct wl_window *window;
|
struct wl_window *window;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue