diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-27 22:13:24 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-02 15:58:33 -0300 |
commit | 9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5 (patch) | |
tree | ea96cf9a17ca5f0448fd7092d0371f82729ccaf6 /src/fileio.c | |
parent | 89e07185e96bcbaeb8009b1dbad161f6b7c8b74c (diff) | |
download | rneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.tar.gz rneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.tar.bz2 rneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.zip |
Remove the always-FALSE shortname argument from buf_modname()
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/fileio.c b/src/fileio.c index 39fd97e21d..0296f65608 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3039,7 +3039,7 @@ buf_write ( /* * Make backup file name. */ - backup = buf_modname(FALSE, rootname, backup_ext, FALSE); + backup = buf_modname(rootname, backup_ext, FALSE); if (backup == NULL) { vim_free(rootname); some_error = TRUE; /* out of memory */ @@ -3215,7 +3215,7 @@ nobackup: if (rootname == NULL) backup = NULL; else { - backup = buf_modname(FALSE, rootname, backup_ext, FALSE); + backup = buf_modname(rootname, backup_ext, FALSE); vim_free(rootname); } @@ -3852,7 +3852,7 @@ restore_backup: * the backup file our 'original' file. */ if (*p_pm && dobackup) { - char *org = (char *)buf_modname(FALSE, fname, p_pm, FALSE); + char *org = (char *)buf_modname(fname, p_pm, FALSE); if (backup != NULL) { struct stat st; @@ -4644,12 +4644,11 @@ modname ( int prepend_dot /* may prepend a '.' to file name */ ) { - return buf_modname(FALSE, fname, ext, prepend_dot); + return buf_modname(fname, ext, prepend_dot); } char_u * buf_modname ( - int shortname, // use 8.3 file name, should always be FALSE now char_u *fname, char_u *ext, int prepend_dot /* may prepend a '.' to file name */ @@ -4663,8 +4662,6 @@ buf_modname ( extlen = (int)STRLEN(ext); - assert(!shortname); - /* * If there is no file name we must get the name of the current directory * (we need the full path in case :cd is used). |