aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
commit34cfe745681189bbd8ec2543971a49e013bfebf9 (patch)
tree1b2011011610bbb67fee8f5692c0ce7223de9760 /src/nvim/eval/funcs.c
parentb1dd90c760cd87f6c5c0c7c66bd0cc61c69319c3 (diff)
downloadrneovim-34cfe745681189bbd8ec2543971a49e013bfebf9.tar.gz
rneovim-34cfe745681189bbd8ec2543971a49e013bfebf9.tar.bz2
rneovim-34cfe745681189bbd8ec2543971a49e013bfebf9.zip
vim-patch:8.2.0876: :pwd does not give a hint about the scope of the directory
Problem: :pwd does not give a hint about the scope of the directory Solution: Make ":verbose pwd" show the scope. (Takuya Fujiwara, closes vim/vim#5469) https://github.com/vim/vim/commit/950587242cad52d067a15f0f0c83528a28f75731
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index fd3353e18b..2c962a4cf0 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -1073,6 +1073,8 @@ static void f_chdir(typval_T *argvars, typval_T *rettv, FunPtr fptr)
rettv->vval.v_string = NULL;
if (argvars[0].v_type != VAR_STRING) {
+ // Returning an empty string means it failed.
+ // No error message, for historic reasons.
return;
}