mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.1.1321: no docs or tests for listener functions
Problem: No docs or tests for listener functions. Solution: Add help and tests for listener_add() and listener_remove(). Invoke the callbacks before redrawing.
This commit is contained in:
@@ -564,6 +564,11 @@ update_screen(int type_arg)
|
||||
type = 0;
|
||||
}
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
// Before updating the screen, notify any listeners of changed text.
|
||||
invoke_listeners();
|
||||
#endif
|
||||
|
||||
if (must_redraw)
|
||||
{
|
||||
if (type < must_redraw) /* use maximal type */
|
||||
|
Reference in New Issue
Block a user