mirror of
https://github.com/vim/vim.git
synced 2025-10-24 08:54:47 -04:00
patch 9.1.1782: buffer-listener callbacks may not match buffer content
Problem: buffer-listener callbacks may not match buffer content, since
they are buffered until the screen is updated.
Solution: Allow to handle buffer-callbacks un-buffered, meaning to
handle those changes as soon as they happen (Paul Ollis).
fixes: #18183
closes: #18295
Signed-off-by: Paul Ollis <paul@cleversheep.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3a6cf6d53b
commit
e87d17ecfb
@@ -3497,7 +3497,8 @@ struct file_buffer
|
||||
dictitem_T b_bufvar; // variable for "b:" Dictionary
|
||||
dict_T *b_vars; // internal variables, local to buffer
|
||||
|
||||
listener_T *b_listener;
|
||||
listener_T *b_listener; // Listeners accepting buffered reports.
|
||||
listener_T *b_sync_listener; // Listeners requiring unbuffered reports.
|
||||
list_T *b_recorded_changes;
|
||||
#endif
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
|
||||
Reference in New Issue
Block a user