From 4a6b4b00cb6d619145cc420a52d80b1f62b19245 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Apr 2024 21:49:44 +0800 Subject: vim-patch:9.1.0251: Filetype test fails (#28142) Problem: Filetype test fails. Solution: Move detection by name before detection by extension. Improve TextChanged test and remove wrong test and fix a typo in a comment (zeertzjq). closes: vim/vim#14373 https://github.com/vim/vim/commit/8eb7523802cb51984e2202d08a4fbc1a2cd803c7 The changes to filetype.vim are N/A since Nvim always prefers filename matches to extension matches. --- src/nvim/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/edit.c') diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 0326096486..220b92d099 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -367,7 +367,7 @@ static void insert_enter(InsertState *s) // ins_redraw() triggers TextChangedI only when no characters // are in the typeahead buffer, so reset curbuf->b_last_changedtick // if the TextChangedI was not blocked by char_avail() (e.g. using :norm!) - // and the TextChangedI autocommand has been triggered + // and the TextChangedI autocommand has been triggered. if (!char_avail() && curbuf->b_last_changedtick_i == buf_get_changedtick(curbuf)) { curbuf->b_last_changedtick = buf_get_changedtick(curbuf); } -- cgit