mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0-101
This commit is contained in:
parent
2113a1d623
commit
ac2adc79f7
13
src/spell.c
13
src/spell.c
@ -9347,20 +9347,27 @@ spell_add_word(word, len, bad, idx, undo)
|
|||||||
fclose(fd);
|
fclose(fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (!undo)
|
||||||
{
|
{
|
||||||
fd = mch_fopen((char *)fname, "a");
|
fd = mch_fopen((char *)fname, "a");
|
||||||
if (fd == NULL && new_spf)
|
if (fd == NULL && new_spf)
|
||||||
{
|
{
|
||||||
|
char_u *p;
|
||||||
|
|
||||||
/* We just initialized the 'spellfile' option and can't open the
|
/* We just initialized the 'spellfile' option and can't open the
|
||||||
* file. We may need to create the "spell" directory first. We
|
* file. We may need to create the "spell" directory first. We
|
||||||
* already checked the runtime directory is writable in
|
* already checked the runtime directory is writable in
|
||||||
* init_spellfile(). */
|
* init_spellfile(). */
|
||||||
if (!dir_of_file_exists(fname))
|
if (!dir_of_file_exists(fname) && (p = gettail_sep(fname)) != fname)
|
||||||
{
|
{
|
||||||
|
int c = *p;
|
||||||
|
|
||||||
/* The directory doesn't exist. Try creating it and opening
|
/* The directory doesn't exist. Try creating it and opening
|
||||||
* the file again. */
|
* the file again. */
|
||||||
vim_mkdir(NameBuff, 0755);
|
*p = NUL;
|
||||||
|
vim_mkdir(fname, 0755);
|
||||||
|
*p = c;
|
||||||
fd = mch_fopen((char *)fname, "a");
|
fd = mch_fopen((char *)fname, "a");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
101,
|
||||||
/**/
|
/**/
|
||||||
100,
|
100,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user