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/ex_getln.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/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 89ff9b6c0e..75d400daba 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3303,7 +3303,7 @@ static int showmatches(expand_T *xp, int wildmenu) } /* - * Private gettail for showmatches() (and win_redr_status_matches()): + * Private path_tail for showmatches() (and win_redr_status_matches()): * Find tail of file name path, but ignore trailing "/". */ char_u *sm_gettail(char_u *s) @@ -3344,7 +3344,7 @@ static int expand_showtail(expand_T *xp) && xp->xp_context != EXPAND_DIRECTORIES) return FALSE; - end = gettail(xp->xp_pattern); + end = path_tail(xp->xp_pattern); if (end == xp->xp_pattern) /* there is no path separator */ return FALSE; @@ -3461,7 +3461,7 @@ addstar ( * ` could be anywhere in the file name. * When the name ends in '$' don't add a star, remove the '$'. */ - tail = gettail(retval); + tail = path_tail(retval); ends_in_star = (len > 0 && retval[len - 1] == '*'); #ifndef BACKSLASH_IN_FILENAME for (i = len - 2; i >= 0; --i) { |