aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.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/fileio.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/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index e1542cf1f1..48172eca03 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4654,7 +4654,7 @@ void shorten_fnames(int force)
|| path_is_absolute_path(buf->b_sfname))) {
vim_free(buf->b_sfname);
buf->b_sfname = NULL;
- p = shorten_fname(buf->b_ffname, dirname);
+ p = path_shorten_fname(buf->b_ffname, dirname);
if (p != NULL) {
buf->b_sfname = vim_strsave(p);
buf->b_fname = buf->b_sfname;