aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorHennadii Chernyshchyk <genaloner@gmail.com>2020-05-05 18:15:45 +0300
committerGitHub <noreply@github.com>2020-05-05 08:15:45 -0700
commitd2766b06c8fc50d06765c5c607744cc6b5f5ef0a (patch)
tree1b3b1a46c44a9c33163d0ef111d70e3bb3fd5784 /src/nvim/eval.c
parent48c219829786c14b6e511229a59e2fda32ffe352 (diff)
downloadrneovim-d2766b06c8fc50d06765c5c607744cc6b5f5ef0a.tar.gz
rneovim-d2766b06c8fc50d06765c5c607744cc6b5f5ef0a.tar.bz2
rneovim-d2766b06c8fc50d06765c5c607744cc6b5f5ef0a.zip
vim-patch:8.1.1120: cannot easily get directory entry matches #12222
Problem: Cannot easily get directory entry matches. Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes vim/vim#2439) https://github.com/vim/vim/commit/543c9b1921d7605498b54afdef518e312f1b4515 closes #12212
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index a6162af472..4a0876a952 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -915,7 +915,7 @@ varnumber_T eval_to_number(char_u *expr)
* Save the current typeval in "save_tv".
* When not used yet add the variable to the v: hashtable.
*/
-static void prepare_vimvar(int idx, typval_T *save_tv)
+void prepare_vimvar(int idx, typval_T *save_tv)
{
*save_tv = vimvars[idx].vv_tv;
if (vimvars[idx].vv_type == VAR_UNKNOWN)
@@ -926,7 +926,7 @@ static void prepare_vimvar(int idx, typval_T *save_tv)
* Restore v: variable "idx" to typeval "save_tv".
* When no longer defined, remove the variable from the v: hashtable.
*/
-static void restore_vimvar(int idx, typval_T *save_tv)
+void restore_vimvar(int idx, typval_T *save_tv)
{
hashitem_T *hi;