diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 20:18:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 20:18:25 +0000 |
| commit | 9682e15deb2037b4da2b9796be81bd3f80e1a153 (patch) | |
| tree | fc1da5d156ec4f2fe0f1644d9276def01da706d9 /terminal.h | |
| parent | vt: simplify CLEAR action; don't memset() more than necessary (diff) | |
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.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 1 |
1 files changed, 1 insertions, 0 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; |
