diff options
author | John <john.schmidt.h@gmail.com> | 2014-04-13 20:30:53 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-29 09:24:34 -0300 |
commit | 42efbfd2fde0942cc7826993191206c24a34b555 (patch) | |
tree | b0cb7c94f06626734da396e20b2ee2f10c300340 /src/buffer.c | |
parent | c57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24 (diff) | |
download | rneovim-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.c | 2 |
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... */ |