0
0
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:
Bram Moolenaar
2019-05-11 21:14:24 +02:00
parent 6d2399bd10
commit a334772967
9 changed files with 165 additions and 19 deletions

View File

@@ -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 */