Mercurial > vim
diff runtime/doc/eval.txt @ 19805:2dc5e6ddeb4c v8.2.0459
patch 8.2.0459: cannot check if a function name is correct
Commit: https://github.com/vim/vim/commit/15c476023f3c5fb32eb1936c5eb5f0f5f413f3c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 26 22:16:48 2020 +0100
patch 8.2.0459: cannot check if a function name is correct
Problem: Cannot check if a function name is correct.
Solution: Add "?funcname" to exists().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Mar 2020 22:30:03 +0100 |
parents | 546bdeef35f1 |
children | 350e1d3131d8 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4102,8 +4102,12 @@ exists({expr}) The result is a Number, w string) *funcname built-in function (see |functions|) or user defined function (see - |user-functions|). Also works for a - variable that is a Funcref. + |user-functions|) that is implemented. + Also works for a variable that is a + Funcref. + ?funcname built-in function that could be + implemented; to be used to check if + "funcname" is valid varname internal variable (see |internal-variables|). Also works for |curly-braces-names|, |Dictionary|