aboutsummaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorStefan Hoffmann <stefan991@gmail.com>2014-04-08 22:32:14 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-11 13:31:48 -0300
commitc1961ee0df4ec99de0e6ec0aa8718bb7c263571e (patch)
tree7c70dd6ca293d889b99b65bce27a3970344eb0c1 /src/spell.c
parent96ddc0198d701db7f4e114d3cc4859456e117c97 (diff)
downloadrneovim-c1961ee0df4ec99de0e6ec0aa8718bb7c263571e.tar.gz
rneovim-c1961ee0df4ec99de0e6ec0aa8718bb7c263571e.tar.bz2
rneovim-c1961ee0df4ec99de0e6ec0aa8718bb7c263571e.zip
removed vim_mkdir macro
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/spell.c b/src/spell.c
index ea3f0787e3..a8b359166b 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -8473,7 +8473,7 @@ spell_add_word (
/* The directory doesn't exist. Try creating it and opening
* the file again. */
*p = NUL;
- vim_mkdir(fname, 0755);
+ os_mkdir((char *)fname, 0755);
*p = c;
fd = mch_fopen((char *)fname, "a");
}
@@ -8553,8 +8553,9 @@ static void init_spellfile(void)
/* Create the "spell" directory if it doesn't exist yet. */
l = (int)STRLEN(buf);
vim_snprintf((char *)buf + l, MAXPATHL - l, "/spell");
- if (os_file_is_writable((char *)buf) != 2)
- vim_mkdir(buf, 0755);
+ if (os_file_is_writable((char *)buf) != 2) {
+ os_mkdir((char *)buf, 0755);
+ }
l = (int)STRLEN(buf);
vim_snprintf((char *)buf + l, MAXPATHL - l,