Mercurial > vim
diff src/evalfunc.c @ 16638:4790302965fc v8.1.1321
patch 8.1.1321: no docs or tests for listener functions
commit https://github.com/vim/vim/commit/a334772967de25764ed7b11d768e8b977818d0c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 11 21:14:24 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 May 2019 21:15:06 +0200 |
parents | a1ba0bd74e7d |
children | ea0f9a2df961 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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