aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-22 10:28:15 +0800
committerGitHub <noreply@github.com>2026-06-22 02:28:15 +0000
commit257701b17b4c22fd6f3cb2e5b70e9baee4fbb412 (patch)
treee5878f810ed0f8711f00e60b1e8b6503262c597d /test/functional/vimscript/executable_spec.lua
parent7d0adc08f76743f991c769f25b98980ade498a64 (diff)
downloadrneovim-257701b17b4c22fd6f3cb2e5b70e9baee4fbb412.tar.gz
rneovim-257701b17b4c22fd6f3cb2e5b70e9baee4fbb412.tar.bz2
rneovim-257701b17b4c22fd6f3cb2e5b70e9baee4fbb412.zip
vim-patch:9.2.0689: the "%" command is slow on a long line with many slashes (#40361)
Problem: The "%" command can be very slow on a long line that contains many slashes, for example a line of base64 data. Solution: When looking for a line comment, scan the line only once while skipping over strings, instead of rescanning from the start for every slash. Move check_linecomment() to cindent.c so it can reuse the file-local skip_string(). related: vim/vim#20491 fixes: vim/vim#20557 closes: vim/vim#20575 https://github.com/vim/vim/commit/9f9af034adcdb5773e19c4bb52e3c368bbce826e Co-authored-by: Hirohito Higashi <h.east.727@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions