neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5bf2f4b3c29fdab72044ddce74f06cb45fe9401c
parent 226a6c3eaef2a7220841d3d5e69e1baf543b3d6f
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Thu, 30 Mar 2023 17:24:50 +0100

fix(filetype): make recursive work...again (#22826)


Diffstat:
Msrc/nvim/autocmd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c @@ -2778,7 +2778,7 @@ void do_filetype_autocmd(buf_T *buf, bool force) did_filetype = true; // Only pass true for "force" when it is true or // used recursively, to avoid endless recurrence. - apply_autocmds(EVENT_FILETYPE, buf->b_p_ft, buf->b_fname, force, buf); + apply_autocmds(EVENT_FILETYPE, buf->b_p_ft, buf->b_fname, force || ft_recursive == 1, buf); ft_recursive--; // Just in case the old "buf" is now invalid