diff options
author | VanaIgr <vanaigranov@gmail.com> | 2023-12-13 13:25:48 -0600 |
---|---|---|
committer | VanaIgr <vanaigranov@gmail.com> | 2024-01-18 21:30:47 -0600 |
commit | a9c551e5e38f484e9055a930b3feaa9ac65d07be (patch) | |
tree | 14a0465de0e425a06f9107918965d28a533bdc26 /test/functional/lua/snippet_spec.lua | |
parent | 77c3d66be9a2ee2c06a2eac049de94c16e92436a (diff) | |
download | rneovim-a9c551e5e38f484e9055a930b3feaa9ac65d07be.tar.gz rneovim-a9c551e5e38f484e9055a930b3feaa9ac65d07be.tar.bz2 rneovim-a9c551e5e38f484e9055a930b3feaa9ac65d07be.zip |
perf: cache breakindent/showbreak width in win_lbr_chartabsize
breakindent was recomputed on every call to win_lbr_charbabsize() when the character
is past the end of the first row of a wrapped line. Even though the function for computing
breakindent cached the last result, reusing the cached value required strcmp of the cached line with the given line.
Diffstat (limited to 'test/functional/lua/snippet_spec.lua')
0 files changed, 0 insertions, 0 deletions