0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.1565: spellfile test sometimes fails

Problem:    Spellfile test sometimes fails.
Solution:   Check running into the end of the file.
This commit is contained in:
Bram Moolenaar 2020-09-02 12:58:48 +02:00
parent 4ad739fc05
commit e90d63ea90
2 changed files with 3 additions and 2 deletions

View File

@ -3533,8 +3533,7 @@ spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile)
spin->si_msg_count = 999999;
// Read and ignore the first line: word count.
(void)vim_fgets(line, MAXLINELEN, fd);
if (!vim_isdigit(*skipwhite(line)))
if (vim_fgets(line, MAXLINELEN, fd) || !vim_isdigit(*skipwhite(line)))
semsg(_("E760: No word count in %s"), fname);
/*

View File

@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1565,
/**/
1564,
/**/