0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -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

@@ -2009,12 +2009,11 @@ tv_get_buf(typval_T *tv, int curtab_only)
return buf;
}
#ifdef FEAT_SIGNS
/*
* Get the buffer from "arg" and give an error and return NULL if it is not
* valid.
*/
static buf_T *
buf_T *
get_buf_arg(typval_T *arg)
{
buf_T *buf;
@@ -2026,7 +2025,6 @@ get_buf_arg(typval_T *arg)
semsg(_("E158: Invalid buffer name: %s"), tv_get_string(arg));
return buf;
}
#endif
/*
* "bufname(expr)" function