diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 06:26:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 06:26:02 +0800 |
commit | 89a9745a1a55dc9ffd0f8292735e45bae6c7b01e (patch) | |
tree | e17013adb760ceb171543140f40e7342b920a049 /runtime/lua/vim/_meta/vimfn.lua | |
parent | 1e0996b57230ad65c28659e179a7da7bfa01e5be (diff) | |
download | rneovim-89a9745a1a55dc9ffd0f8292735e45bae6c7b01e.tar.gz rneovim-89a9745a1a55dc9ffd0f8292735e45bae6c7b01e.tar.bz2 rneovim-89a9745a1a55dc9ffd0f8292735e45bae6c7b01e.zip |
vim-patch:9.1.0055: formatting long lines is slow (#27199)
Problem: formatting long lines is slow
(kawaii-Code)
Solution: optimize gq (internal_format) for long
lines (kawaii-Code)
Implemented two workarounds that significantly reduce
the amount of pointless calls. Ideally the algorithm
would be rewritten not to be n^2, but it's too complicated
with too many corner cases.
closes: vim/vim#13914
https://github.com/vim/vim/commit/78019df645400796831670ec166e7e3b55ae8310
Co-authored-by: kawaii-Code <nia.personal.0@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
0 files changed, 0 insertions, 0 deletions