diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2026-04-18 13:50:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-18 06:50:28 -0400 |
| commit | 6b9b4a1377b330fca651287025c1bf5242ac9790 (patch) | |
| tree | de8bb8254efaef5235f3bdc8695a70e31acba327 /test/functional/vimscript/executable_spec.lua | |
| parent | 48035739a48299d521a4956fcdae0d973a867b12 (diff) | |
fix(vim.filetype): match() fails if g:ft_ignore_pat is not defined #39158
Problem: Calling `vim.filetype.match({ filename = '...', buf = ... })`
during startup results in an error due to not yet defined
`g:ft_ignore_pat`.
Solution: Add a guard to check `g:ft_ignore_pat` related properties only
if the variable is defined. This also allows to simplify other tests
which did not depend on `g:ft_ignore_pat` but required it explicitly
set to work.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions
