comparison src/edit.c @ 34746:d537272fa503 v9.1.0251

patch 9.1.0251: Filetype test fails Commit: https://github.com/vim/vim/commit/8eb7523802cb51984e2202d08a4fbc1a2cd803c7 Author: zeertzjq <zeertzjq@outlook.com> Date: Mon Apr 1 14:46:20 2024 +0200 patch 9.1.0251: Filetype test fails 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: #14373 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 01 Apr 2024 15:00:07 +0200
parents d432af20fe54
children
comparison
equal deleted inserted replaced
34745:300525584c40 34746:d537272fa503
845 did_cursorhold = FALSE; 845 did_cursorhold = FALSE;
846 846
847 // ins_redraw() triggers TextChangedI only when no characters 847 // ins_redraw() triggers TextChangedI only when no characters
848 // are in the typeahead buffer, so reset curbuf->b_last_changedtick only 848 // are in the typeahead buffer, so reset curbuf->b_last_changedtick only
849 // if the TextChangedI was not blocked by char_avail() (e.g. using :norm!) 849 // if the TextChangedI was not blocked by char_avail() (e.g. using :norm!)
850 // and the TextChangeDI autocommand has been trigered 850 // and the TextChangedI autocommand has been triggered.
851 if (!char_avail() && curbuf->b_last_changedtick_i == CHANGEDTICK(curbuf)) 851 if (!char_avail() && curbuf->b_last_changedtick_i == CHANGEDTICK(curbuf))
852 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); 852 curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
853 return (c == Ctrl_O); 853 return (c == Ctrl_O);
854 } 854 }
855 continue; 855 continue;