aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJohn <john.schmidt.h@gmail.com>2014-04-13 20:30:53 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-29 09:24:34 -0300
commit42efbfd2fde0942cc7826993191206c24a34b555 (patch)
treeb0cb7c94f06626734da396e20b2ee2f10c300340 /src/buffer.c
parentc57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24 (diff)
downloadrneovim-42efbfd2fde0942cc7826993191206c24a34b555.tar.gz
rneovim-42efbfd2fde0942cc7826993191206c24a34b555.tar.bz2
rneovim-42efbfd2fde0942cc7826993191206c24a34b555.zip
Test and refactor `shorten_fname` and `shorten_fname1`
Rename `shorten_fname` -> `path_shorten_fname` Rename `shorten_fname1` -> `path_shorten_fname_if_possible`
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
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... */