aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorJonny Kong <jonnykong1996@gmail.com>2025-10-28 18:45:50 -0700
committerGitHub <noreply@github.com>2025-10-28 18:45:50 -0700
commite2cb675705221066522ae707ed5f572a0cf0ebcf (patch)
tree5a37fae868cf020c08cbff7026699877a06efcbb /test/functional/vimscript/executable_spec.lua
parentc1b1c8c2e04ec0ec9b35e5b99d3905d4618b10dd (diff)
downloadrneovim-e2cb675705221066522ae707ed5f572a0cf0ebcf.tar.gz
rneovim-e2cb675705221066522ae707ed5f572a0cf0ebcf.tar.bz2
rneovim-e2cb675705221066522ae707ed5f572a0cf0ebcf.zip
fix(filetype): move fallback logic to vim.filetype.match() #30141
Problem: Previously, the fallback logic to ".conf" was located outside of `vim.filetype.match()` and directly within the AutoCmd definition. As a result, `vim.filetype.match()` would return nil instead of ".conf" for fallback cases (#30100). Solution: Added a boolean return value to `vim.filetype.match()` that indicates whether the match was the result of fallback. If true, the filetype will be set using `setf FALLBACK <ft>` instead of `setf <ft>`.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions