summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-18 20:47:31 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-18 20:47:31 +0000
commit851c7a699ae00bdc14a4db874cf722b7b7393b53 (patch)
tree28e2e265f8a6d37e892e6e8123032355eb9da331 /runtime
parent0526815c15170a5926e1008600ec29d42d8b64c2 (diff)
downloadvim-git-851c7a699ae00bdc14a4db874cf722b7b7393b53.tar.gz
patch 8.2.3618: getcwd() is unclear about how 'autochdir' is usedv8.2.3618
Problem: getcwd() is unclear about how 'autochdir' is used. Solution: Update the help for getcwd(). Without any arguments always return the actual current directory. (closes #9142)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e29b56411..593dcb517 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -5757,7 +5757,7 @@ getcursorcharpos([{winid}])
< *getcwd()*
getcwd([{winnr} [, {tabnr}]])
The result is a String, which is the name of the current
- working directory.
+ working directory. 'autochdir' is ignored.
With {winnr} return the local current directory of this window
in the current tab page. {winnr} can be the window number or
@@ -5770,8 +5770,8 @@ getcwd([{winnr} [, {tabnr}]])
the working directory of the tabpage.
If {winnr} is zero use the current window, if {tabnr} is zero
use the current tabpage.
- Without any arguments, return the working directory of the
- current window.
+ Without any arguments, return the actual working directory of
+ the current window.
Return an empty string if the arguments are invalid.
Examples: >