Mercurial > vim
diff src/evalvars.c @ 27114:98a01021e465 v8.2.4086
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Commit: https://github.com/vim/vim/commit/d9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 13 21:15:21 2022 +0000
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Problem: "cctx" argument of find_func_even_dead() is unused.
Solution: Remove the argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Jan 2022 22:30:05 +0100 |
parents | 62b88e6cd791 |
children | b73e3617c1d6 |
line wrap: on
line diff
--- a/src/evalvars.c +++ b/src/evalvars.c @@ -2727,7 +2727,7 @@ eval_variable( } else if (in_vim9script() && (flags & EVAL_VAR_NO_FUNC) == 0) { - ufunc_T *ufunc = find_func(name, FALSE, NULL); + ufunc_T *ufunc = find_func(name, FALSE); // In Vim9 script we can get a function reference by using the // function name. @@ -3063,7 +3063,7 @@ lookup_scriptitem( is_global = TRUE; fname = name + 2; } - if (find_func(fname, is_global, NULL) != NULL) + if (find_func(fname, is_global) != NULL) res = OK; } }