mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
wip: use a sliding window instead of memmove() to scroll
Instead of memmoving a large amount of data on every scroll, use a sliding window. That is, each time we scroll, we offset origin.
This commit is contained in:
parent
9e3b8ab3ff
commit
d70956da08
7 changed files with 140 additions and 108 deletions
2
csi.c
2
csi.c
|
|
@ -280,7 +280,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
i == term->vt.params.idx - 1 ? "" : ";");
|
||||
}
|
||||
|
||||
c += snprintf(&log[c], sizeof(log) - c, "%c (%zu parameters)",
|
||||
c += snprintf(&log[c], sizeof(log) - c, "%c (%d parameters)",
|
||||
final, term->vt.params.idx);
|
||||
LOG_DBG("%s", log);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue