summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-11 21:14:24 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-11 21:14:24 +0200
commita334772967de25764ed7b11d768e8b977818d0c6 (patch)
tree1f5b7b787eb7b18e2adb6aee66843837d64cdb99 /src/evalfunc.c
parent6d2399bd1053b367e13cc2b8991d3ff0bf724c7c (diff)
downloadvim-git-a334772967de25764ed7b11d768e8b977818d0c6.tar.gz
patch 8.1.1321: no docs or tests for listener functionsv8.1.1321
Problem: No docs or tests for listener functions. Solution: Add help and tests for listener_add() and listener_remove(). Invoke the callbacks before redrawing.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c4
1 files changed, 1 insertions, 3 deletions
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