From a334772967de25764ed7b11d768e8b977818d0c6 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 11 May 2019 21:14:24 +0200 Subject: 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. --- src/evalfunc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/evalfunc.c') diff --git a/src/evalfunc.c b/src/evalfunc.c index 02ca1ae82..b67aeb8d7 100644 --- 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 -- cgit v1.2.1