]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other buf v9.1.0231
authorzeertzjq <zeertzjq@outlook.com>
Sun, 31 Mar 2024 16:41:27 +0000 (18:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 16:41:27 +0000 (18:41 +0200)
commit5bf6c2117fcef85fcf046c098dd3eb72a0147859
tree32804af25b55ac2859188f9bc0771a38d078862c
parent86032702932995db74fed265ba99ae0c823cb75d
patch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other buf

Problem:  Filetype may be undetected when a SwapExists autocommand sets
          filetype in another buffer.
Solution: Make filetype detection state buffer-specific.  Also fix a
          similar problem for 'modified' (zeertzjq).

closes: #14344

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 files changed:
src/autocmd.c
src/buffer.c
src/evalfunc.c
src/ex_cmds.c
src/ex_docmd.c
src/fileio.c
src/globals.h
src/option.c
src/optionstr.c
src/quickfix.c
src/structs.h
src/testdir/test_autocmd.vim
src/version.c