diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-04-25 16:01:41 +0200 |
---|---|---|
committer | Stefan Hoffmann <stefan991@gmail.com> | 2014-05-09 15:49:32 +0200 |
commit | edbb687b73877d8db8b1c6e376e3422bb85a11a9 (patch) | |
tree | f4b6af6d46561876e3aa559ca75621a92f7bbe3f /src/spell.c | |
parent | f3dda65de157f2d7c35286018c20cbc7597ed748 (diff) | |
download | rneovim-edbb687b73877d8db8b1c6e376e3422bb85a11a9.tar.gz rneovim-edbb687b73877d8db8b1c6e376e3422bb85a11a9.tar.bz2 rneovim-edbb687b73877d8db8b1c6e376e3422bb85a11a9.zip |
replaced some mch_stat() with os_file_exists()
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); |