aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-30 15:30:10 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-03 10:32:41 -0300
commit7021b970b9e8b3f9b9fe71546bfb3aa30851abd2 (patch)
tree6d7d79452963fec9b10dbaa24778175ea1829268 /src/misc2.c
parent77bfb6cd990c67e4191d4858af82de42303e1939 (diff)
downloadrneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.tar.gz
rneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.tar.bz2
rneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.zip
Test and refactor gettail_sep -> path_tail_with_seperator.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 9c87dd46d4..c43a7e4b90 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1609,7 +1609,7 @@ int vim_chdirfile(char_u *fname)
char_u dir[MAXPATHL];
vim_strncpy(dir, fname, MAXPATHL - 1);
- *gettail_sep(dir) = NUL;
+ *path_tail_with_seperator(dir) = NUL;
return os_chdir((char *)dir) == 0 ? OK : FAIL;
}
#endif