diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-30 13:42:03 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-03 10:32:41 -0300 |
commit | 77bfb6cd990c67e4191d4858af82de42303e1939 (patch) | |
tree | d7c6fbf45cbe581fbf4e3edabf506d8fcf153037 /src/file_search.c | |
parent | 6d712defa52e58627aca5c875677d14d705300e8 (diff) | |
download | rneovim-77bfb6cd990c67e4191d4858af82de42303e1939.tar.gz rneovim-77bfb6cd990c67e4191d4858af82de42303e1939.tar.bz2 rneovim-77bfb6cd990c67e4191d4858af82de42303e1939.zip |
Test and refactor gettail -> path_tail.
Diffstat (limited to 'src/file_search.c')
-rw-r--r-- | src/file_search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_search.c b/src/file_search.c index 00b32d669f..5808c600dc 100644 --- a/src/file_search.c +++ b/src/file_search.c @@ -318,7 +318,7 @@ vim_findfile_init ( && (vim_ispathsep(path[1]) || path[1] == NUL) && (!tagfile || vim_strchr(p_cpo, CPO_DOTTAG) == NULL) && rel_fname != NULL) { - int len = (int)(gettail(rel_fname) - rel_fname); + int len = (int)(path_tail(rel_fname) - rel_fname); if (!vim_isAbsName(rel_fname) && len + 1 < MAXPATHL) { /* Make the start dir an absolute path name. */ @@ -503,7 +503,7 @@ vim_findfile_init ( STRCAT(ff_expand_buffer, search_ctx->ffsc_fix_path); add_pathsep(ff_expand_buffer); } else { - char_u *p = gettail(search_ctx->ffsc_fix_path); + char_u *p = path_tail(search_ctx->ffsc_fix_path); char_u *wc_path = NULL; char_u *temp = NULL; int len = 0; @@ -1505,7 +1505,7 @@ find_file_in_path_option ( && rel_fname != NULL && STRLEN(rel_fname) + l < MAXPATHL) { STRCPY(NameBuff, rel_fname); - STRCPY(gettail(NameBuff), ff_file_to_find); + STRCPY(path_tail(NameBuff), ff_file_to_find); l = (int)STRLEN(NameBuff); } else { STRCPY(NameBuff, ff_file_to_find); |