diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-18 07:47:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 23:47:20 +0000 |
commit | 185b22720de9156393ddc22c2c59dc3eb46b8d97 (patch) | |
tree | 94edee546e7f2c494f9cd7031b75e7830701b37b /src/nvim/eval | |
parent | ca6710c83e6641e00660084a90df79a3027d292a (diff) | |
download | rneovim-185b22720de9156393ddc22c2c59dc3eb46b8d97.tar.gz rneovim-185b22720de9156393ddc22c2c59dc3eb46b8d97.tar.bz2 rneovim-185b22720de9156393ddc22c2c59dc3eb46b8d97.zip |
vim-patch:9.0.0003: functions are global while they could be local (#29777)
Problem: Functions are global while they could be local.
Solution: Add "static". Add a few tests. (Yegappan Lakshmanan,
closes vim/vim#10612)
https://github.com/vim/vim/commit/ee47eaceaa148e07b566ff420f9a3c2edde2fa34
Omit script_name_after_autoload(), untrans_function_name(): Vim9 script
only.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/eval')
-rw-r--r-- | src/nvim/eval/vars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/vars.c b/src/nvim/eval/vars.c index 7b93a291c4..2dca942bb5 100644 --- a/src/nvim/eval/vars.c +++ b/src/nvim/eval/vars.c @@ -105,7 +105,7 @@ char *eval_one_expr_in_str(char *p, garray_T *gap, bool evaluate) /// string in allocated memory. "{{" is reduced to "{" and "}}" to "}". /// Used for a heredoc assignment. /// Returns NULL for an error. -char *eval_all_expr_in_str(char *str) +static char *eval_all_expr_in_str(char *str) { garray_T ga; ga_init(&ga, 1, 80); |