]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1084: Unable to persistently ignore events in a window and its buffers v9.1.1084
authorLuuk van Baal <luukvbaal@gmail.com>
Sat, 8 Feb 2025 17:52:39 +0000 (18:52 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 8 Feb 2025 17:52:39 +0000 (18:52 +0100)
commitb7147f8236c962cd74d1ce028d9106f1c449ea6c
treebb956aec8d2570740e6d727edf9f632f8cdb55a9
parenta35040f795fbf217b0a1e21b6b3a94ad56c2298b
patch 9.1.1084: Unable to persistently ignore events in a window and its buffers

Problem:  Unable to persistently ignore events in a window and its buffers.
Solution: Add 'eventignorewin' option to ignore events in a window and buffer
          (Luuk van Baal)

Add the window-local 'eventignorewin' option that is analogous to
'eventignore', but applies to a certain window and its buffers. Identify
events that should be allowed in 'eventignorewin', adapt "auto_event"
and "event_tab" to encode this information. Window context is not passed
onto apply_autocmds_group(), and when to ignore an event is a bit
ambiguous when "buf" is not "curbuf", rather than a large refactor, only
ignore an event when all windows into "buf" are ignoring the event.

closes: #16530

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
21 files changed:
runtime/doc/autocmd.txt
runtime/doc/options.txt
runtime/doc/quickref.txt
runtime/doc/tags
runtime/doc/version9.txt
runtime/optwin.vim
runtime/syntax/generator/gen_syntax_vim.vim
runtime/syntax/vim.vim
src/autocmd.c
src/option.c
src/option.h
src/optiondefs.h
src/optionstr.c
src/proto/autocmd.pro
src/structs.h
src/testdir/gen_opt_test.vim
src/testdir/test_autocmd.vim
src/testdir/test_options.vim
src/version.c
src/vim.h
src/window.c