aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorTristan Knight <admin@snappeh.com>2024-09-23 23:42:16 +0100
committerGitHub <noreply@github.com>2024-09-24 06:42:16 +0800
commit032e024f8ab9048286859be6b83349c5f1ece868 (patch)
tree8628565eb96ce811c5e5b05bf6f93d03e03c9492 /src/nvim/api/vim.c
parent34a40d3a50f71a4b5e06c36ed9f9110983984dbf (diff)
downloadrneovim-032e024f8ab9048286859be6b83349c5f1ece868.tar.gz
rneovim-032e024f8ab9048286859be6b83349c5f1ece868.tar.bz2
rneovim-032e024f8ab9048286859be6b83349c5f1ece868.zip
fix(filetype): handle .in files with no filename (#30487)
Problem: fnamemodify with the :r flag will not strip extensions if the filename starts with a ".". This means that files named ".in" could cause an infinite loop. Solution: Add early return if the filename was not changed
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions