diff options
author | markstegeman <markstegeman@users.noreply.github.com> | 2025-03-19 13:41:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 05:41:25 -0700 |
commit | 21cbd9000748696b86ae97d08ee659d95917a95a (patch) | |
tree | 820ef19fa7bcf7ed27e7b989d4f1ba25596b62cd /runtime/lua/vim/snippet.lua | |
parent | f1fcf653cb7c3e738c1d07b1e087f6cf9d6ca9c5 (diff) | |
download | rneovim-21cbd9000748696b86ae97d08ee659d95917a95a.tar.gz rneovim-21cbd9000748696b86ae97d08ee659d95917a95a.tar.bz2 rneovim-21cbd9000748696b86ae97d08ee659d95917a95a.zip |
fix(filetype): normalize full path before matching #32227
Problem:
On Windows, treesitter query files are not recognized as such when
opened from inside their directory, because the full path returned from
fnamemodify(_, ':p') contains backslashes, while the filetype patterns
expect forward slashes.
Solution:
Normalize the result of fnamemodify(_, ':p') before trying to match it
to filetype patterns.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
0 files changed, 0 insertions, 0 deletions