aboutsummaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-27 22:13:24 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-02 15:58:33 -0300
commit9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5 (patch)
treeea96cf9a17ca5f0448fd7092d0371f82729ccaf6 /src/memline.c
parent89e07185e96bcbaeb8009b1dbad161f6b7c8b74c (diff)
downloadrneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.tar.gz
rneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.tar.bz2
rneovim-9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5.zip
Remove the always-FALSE shortname argument from buf_modname()
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/memline.c b/src/memline.c
index 0978e10cc1..38b68344b9 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -3371,14 +3371,9 @@ char_u *makeswapname(char_u *fname, char_u *ffname, buf_T *buf, char_u *dir_name
fname_res = fname_buf;
#endif
- r = buf_modname(
- FALSE,
- fname_res,
- (char_u *)
- ".swp",
- /* Prepend a '.' to the swap file name for the current directory. */
- dir_name[0] == '.' && dir_name[1] == NUL
- );
+ // Prepend a '.' to the swap file name for the current directory.
+ r = buf_modname(fname_res, (char_u *)".swp",
+ dir_name[0] == '.' && dir_name[1] == NUL);
if (r == NULL) /* out of memory */
return NULL;