aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-01-11 11:56:29 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-01-28 13:58:52 -0500
commite39be42c0998d8048354961cd7a0864111c01e0b (patch)
tree9750f137c6064935ed8656020ee12bbed523489f
parent909c967f35c3d38be6d98d7dba6cfd087a6542f4 (diff)
downloadrneovim-e39be42c0998d8048354961cd7a0864111c01e0b.tar.gz
rneovim-e39be42c0998d8048354961cd7a0864111c01e0b.tar.bz2
rneovim-e39be42c0998d8048354961cd7a0864111c01e0b.zip
fixup: compile-time errors
-rw-r--r--src/nvim/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index d18d9ecace..8e4f72be68 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -2202,9 +2202,9 @@ static int path_get_absolute_path(const char_u *fname, char_u *buf,
// expand it if forced or not an absolute path
if (force || !path_is_absolute_path(fname)) {
- p = vim_strrchr(fname, "/")
+ p = vim_strrchr(fname, PATHSEP);
#ifdef WIN32
- if (p == NULL) p = vim_strrchr(fname, "\\")
+ if (p == NULL) p = vim_strrchr(fname, '/');
#endif
if (p != NULL) {
// relative to root