aboutsummaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-27 22:15:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-02 15:58:33 -0300
commitd1411aebd8c9514a6a5fceaffe6d11f5a8df59f1 (patch)
tree696e9248fad25bfd58abb8efe8b545b0866d9220 /src/memline.c
parent9b56e3a4cc5480deb5769a712b003c5a0fd9fdf5 (diff)
downloadrneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.tar.gz
rneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.tar.bz2
rneovim-d1411aebd8c9514a6a5fceaffe6d11f5a8df59f1.zip
Rename buf_modname to modname as they've become the same
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/memline.c b/src/memline.c
index 38b68344b9..31f1b525ca 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1610,9 +1610,7 @@ recover_names (
struct stat st;
char_u *swapname;
- swapname = modname(fname_res,
- (char_u *)".swp", TRUE
- );
+ swapname = modname(fname_res, (char_u *)".swp", TRUE);
if (swapname != NULL) {
if (mch_stat((char *)swapname, &st) != -1) { /* It exists! */
files = (char_u **)alloc((unsigned)sizeof(char_u *));
@@ -3372,8 +3370,8 @@ char_u *makeswapname(char_u *fname, char_u *ffname, buf_T *buf, char_u *dir_name
#endif
// 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);
+ r = modname(fname_res, (char_u *)".swp",
+ dir_name[0] == '.' && dir_name[1] == NUL);
if (r == NULL) /* out of memory */
return NULL;