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:
parent
4ad739fc05
commit
e90d63ea90
@ -3533,8 +3533,7 @@ spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile)
|
|||||||
spin->si_msg_count = 999999;
|
spin->si_msg_count = 999999;
|
||||||
|
|
||||||
// Read and ignore the first line: word count.
|
// Read and ignore the first line: word count.
|
||||||
(void)vim_fgets(line, MAXLINELEN, fd);
|
if (vim_fgets(line, MAXLINELEN, fd) || !vim_isdigit(*skipwhite(line)))
|
||||||
if (!vim_isdigit(*skipwhite(line)))
|
|
||||||
semsg(_("E760: No word count in %s"), fname);
|
semsg(_("E760: No word count in %s"), fname);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1565,
|
||||||
/**/
|
/**/
|
||||||
1564,
|
1564,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user