aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/uri.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-01-05 09:50:54 -0700
committerGitHub <noreply@github.com>2022-01-05 09:50:54 -0700
commitf40ce3456313138f2e0f822da9676ed3bc51f608 (patch)
treefe255279c898902a601e182e97092dc540f80736 /runtime/lua/vim/uri.lua
parent55a59e56eda98f17448a1c318a346ae12d30fc05 (diff)
downloadrneovim-f40ce3456313138f2e0f822da9676ed3bc51f608.tar.gz
rneovim-f40ce3456313138f2e0f822da9676ed3bc51f608.tar.bz2
rneovim-f40ce3456313138f2e0f822da9676ed3bc51f608.zip
fix(filetype): match on <afile> rather than <abuf> (#16943)
Filetype detection runs on BufRead and BufNewFile autocommands, both of which can fire without an underlying buffer, so it's incorrect to use <abuf> to determine the file path. Instead, match on <afile> and assume that the buffer we're operating on is the current buffer. This is the same assumption that filetype.vim makes, so it should be safe.
Diffstat (limited to 'runtime/lua/vim/uri.lua')
0 files changed, 0 insertions, 0 deletions