mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
term: "cache" pointer to current line
This adds a pointer to the first cell on the current line. This pointer must be updated every time the row changes. The advantage is mainly that PRINT doesn't have to call grid_get_range(), which is fairly expensive.
This commit is contained in:
parent
ed68eafdf0
commit
9682e15deb
3 changed files with 14 additions and 5 deletions
|
|
@ -66,6 +66,7 @@ struct grid {
|
|||
int offset;
|
||||
|
||||
struct cell *cells;
|
||||
struct cell *cur_line;
|
||||
|
||||
tll(struct damage) damage;
|
||||
tll(struct damage) scroll_damage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue