From 42efbfd2fde0942cc7826993191206c24a34b555 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 13 Apr 2014 20:30:53 +0200 Subject: Test and refactor `shorten_fname` and `shorten_fname1` Rename `shorten_fname` -> `path_shorten_fname` Rename `shorten_fname1` -> `path_shorten_fname_if_possible` --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index 8f856e9dc6..8723e31be3 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4255,7 +4255,7 @@ int read_viminfo_bufferlist(vir_T *virp, int writing) /* Expand "~/" in the file name at "line + 1" to a full path. * Then try shortening it by comparing with the current directory */ expand_env(xline, NameBuff, MAXPATHL); - sfname = shorten_fname1(NameBuff); + sfname = path_shorten_fname_if_possible(NameBuff); buf = buflist_new(NameBuff, sfname, (linenr_T)0, BLN_LISTED); if (buf != NULL) { /* just in case... */ -- cgit