Test and refactor shorten_fname and shorten_fname1

Rename `shorten_fname` -> `path_shorten_fname`
Rename `shorten_fname1` -> `path_shorten_fname_if_possible`
This commit is contained in:
John
2014-04-13 20:30:53 +02:00
committed by Thiago de Arruda
parent c57002a7c3
commit 42efbfd2fd
10 changed files with 91 additions and 48 deletions

View File

@@ -482,7 +482,7 @@ static void fname2fnum(xfmark_T *fm)
/* Try to shorten the file name. */
os_dirname(IObuff, IOSIZE);
p = shorten_fname(NameBuff, IObuff);
p = path_shorten_fname(NameBuff, IObuff);
/* buflist_new() will call fmarks_check_names() */
(void)buflist_new(NameBuff, p, (linenr_T)1, 0);