aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-04-01 17:44:20 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-03 10:32:41 -0300
commit865e3280a8020d005ba462650f6479af815684a3 (patch)
treec23e5627750b688b7a67821fdbcf6924a39f9dcb /src/path.c
parent955d6a29496d9f7902e95f4a2cc01fedd56e4a21 (diff)
downloadrneovim-865e3280a8020d005ba462650f6479af815684a3.tar.gz
rneovim-865e3280a8020d005ba462650f6479af815684a3.tar.bz2
rneovim-865e3280a8020d005ba462650f6479af815684a3.zip
Fix seperator->separator, path_tail_with_separator->path_tail_with_sep.
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path.c b/src/path.c
index 93ee6dddeb..7461eaa160 100644
--- a/src/path.c
+++ b/src/path.c
@@ -78,7 +78,7 @@ char_u *path_tail(char_u *fname)
return tail;
}
-char_u *path_tail_with_seperator(char_u *fname)
+char_u *path_tail_with_sep(char_u *fname)
{
assert(fname != NULL);
char_u *past_head;
@@ -210,7 +210,7 @@ int dir_of_file_exists(char_u *fname)
int c;
int retval;
- p = path_tail_with_seperator(fname);
+ p = path_tail_with_sep(fname);
if (p == fname)
return TRUE;
c = *p;
@@ -1644,8 +1644,8 @@ int same_directory(char_u *f1, char_u *f2)
return FALSE;
(void)vim_FullName(f1, ffname, MAXPATHL, FALSE);
- t1 = path_tail_with_seperator(ffname);
- t2 = path_tail_with_seperator(f2);
+ t1 = path_tail_with_sep(ffname);
+ t2 = path_tail_with_sep(f2);
return t1 - ffname == t2 - f2
&& pathcmp((char *)ffname, (char *)f2, (int)(t1 - ffname)) == 0;
}