diff options
| author | Guldoman <giulio.lettieri@gmail.com> | 2021-09-03 00:50:21 +0200 |
|---|---|---|
| committer | Guldoman <giulio.lettieri@gmail.com> | 2021-09-03 00:55:10 +0200 |
| commit | e559afaefc269231429ec51c9261dacca37f874e (patch) | |
| tree | df7b7aa977360bfb511666bcf7efedf0a770d632 /data/core/node.lua | |
| parent | f18629ab640423807ec44fb9163a0222ad850aae (diff) | |
| download | pragtical-e559afaefc269231429ec51c9261dacca37f874e.tar.gz pragtical-e559afaefc269231429ec51c9261dacca37f874e.zip | |
Add a simple cache to `DocView:get_h_scrollable_size`
This function gets called at every `core.step`, so we should avoid
having to recalculate the scrollable size every time, as it could get
very expensive on long lines.
Diffstat (limited to 'data/core/node.lua')
0 files changed, 0 insertions, 0 deletions
