diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-02 12:58:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-02 12:58:48 +0200 |
commit | e90d63ea904187ecbb09d0f7f21b71b302b30644 (patch) | |
tree | 26366c5393253787b1ec4de2e5ee2d0b0e9f5519 | |
parent | 4ad739fc053c1666d07ba1cf59be26cb1c3e52d7 (diff) | |
download | vim-git-e90d63ea904187ecbb09d0f7f21b71b302b30644.tar.gz |
patch 8.2.1565: spellfile test sometimes failsv8.2.1565
Problem: Spellfile test sometimes fails.
Solution: Check running into the end of the file.
-rw-r--r-- | src/spellfile.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/spellfile.c b/src/spellfile.c index 12dedd6c5..869db7f3f 100644 --- a/src/spellfile.c +++ b/src/spellfile.c @@ -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); /* diff --git a/src/version.c b/src/version.c index 03612aa06..bbbb26e31 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1565, +/**/ 1564, /**/ 1563, |