aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/secure.lua
diff options
context:
space:
mode:
authorMP430 <57238920+MP430@users.noreply.github.com>2026-03-10 21:26:40 +0000
committerGitHub <noreply@github.com>2026-03-10 17:26:40 -0400
commitb3324be0d8a17ed600a2ea840827cc4db042d32a (patch)
tree520548f9738c959255e69a4bd4d4a7d902cb0ce2 /runtime/lua/vim/secure.lua
parent145548a24ae694ff048b080aa7e8b0329b9c9491 (diff)
downloadrneovim-b3324be0d8a17ed600a2ea840827cc4db042d32a.tar.gz
rneovim-b3324be0d8a17ed600a2ea840827cc4db042d32a.tar.bz2
rneovim-b3324be0d8a17ed600a2ea840827cc4db042d32a.zip
fix(man.lua): :Man ignores section of gzipped manpage #38235
Problem: Under certain circumstances (e.g. gzipped manpages with mandoc), :Man will not find the correct page because it does not process multiple extensions correctly. For example, with a file named strcpy.3p.gz, it will only check the .gz part to try to check the section. This leads to some pages being inaccessible because it will return the page from the wrong section. Solution: Loop and try multiple extensions to try to find one which matches the name of the section. Also refactor the man.get_path function so that it can be tested.
Diffstat (limited to 'runtime/lua/vim/secure.lua')
0 files changed, 0 insertions, 0 deletions