diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2026-06-13 20:20:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-13 13:20:45 -0400 |
| commit | e9b9426d7d1fa5aeb0451bf21b4a5515b4ef5901 (patch) | |
| tree | 9584175dda1b2a74946790934406d02246664377 /test/functional/vimscript/executable_spec.lua | |
| parent | 736f914c7b9fb902963c31e1d9a3c3232cc6ed76 (diff) | |
| download | rneovim-e9b9426d7d1fa5aeb0451bf21b4a5515b4ef5901.tar.gz rneovim-e9b9426d7d1fa5aeb0451bf21b4a5515b4ef5901.tar.bz2 rneovim-e9b9426d7d1fa5aeb0451bf21b4a5515b4ef5901.zip | |
fix(filetype): `vim.filetype.match` fails if CWD goes missing #40190
Problem: Running `vim.filetype.match()` when current working directory
was removed from disk throws a `vim.fs.abspath` assertion error.
However, the matching might still be possible without trying to match
against full path (like if it is a known extension).
Solution: Safely compute absolute path and ignore it if it errors.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions