diff options
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/spell.c b/src/spell.c index 5ee799ebf1..5392fe4a70 100644 --- a/src/spell.c +++ b/src/spell.c @@ -7768,7 +7768,6 @@ mkspell ( afffile_T *(afile[8]); int i; int len; - struct stat st; int error = FALSE; spellinfo_T spin; @@ -7832,7 +7831,7 @@ mkspell ( else { // Check for overwriting before doing things that may take a lot of // time. - if (!over_write && mch_stat((char *)wfname, &st) >= 0) { + if (!over_write && os_file_exists(wfname)) { EMSG(_(e_exists)); goto theend; } @@ -7888,7 +7887,7 @@ mkspell ( spin.si_region = 1 << i; vim_snprintf((char *)fname, MAXPATHL, "%s.aff", innames[i]); - if (mch_stat((char *)fname, &st) >= 0) { + if (os_file_exists(fname)) { // Read the .aff file. Will init "spin->si_conv" based on the // "SET" line. afile[i] = spell_read_aff(&spin, fname); |