Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -847,7 +847,7 @@ doESCkey: // ins_redraw() triggers TextChangedI only when no characters // are in the typeahead buffer, so reset curbuf->b_last_changedtick only // if the TextChangedI was not blocked by char_avail() (e.g. using :norm!) - // and the TextChangeDI autocommand has been trigered + // and the TextChangedI autocommand has been triggered. if (!char_avail() && curbuf->b_last_changedtick_i == CHANGEDTICK(curbuf)) curbuf->b_last_changedtick = CHANGEDTICK(curbuf); return (c == Ctrl_O);