mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user