aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-24 22:45:03 +0200
committerGitHub <noreply@github.com>2017-04-24 22:45:03 +0200
commit8f346a322bc18949ae256203ffa801d7ba1dd1c0 (patch)
tree1867d48970c48dd7bccf827def7e2b196b1c2661 /src
parent8dc3eca49ba4203fb28ae4d70f3bfac35442199a (diff)
downloadrneovim-8f346a322bc18949ae256203ffa801d7ba1dd1c0.tar.gz
rneovim-8f346a322bc18949ae256203ffa801d7ba1dd1c0.tar.bz2
rneovim-8f346a322bc18949ae256203ffa801d7ba1dd1c0.zip
test/fs: sanity check for literal "~" directory (#6579)
If the CWD contains a directory with the literal name "~" then the tests will have bogus failures.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index c39ff5d358..aaa750db50 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -61,9 +61,9 @@ void fs_init(void)
}
-/// Change to the given directory.
+/// Changes the current directory to `path`.
///
-/// @return `0` on success, a libuv error code on failure.
+/// @return 0 on success, or negative error code.
int os_chdir(const char *path)
FUNC_ATTR_NONNULL_ALL
{