diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-16 02:14:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 02:14:41 +0100 |
commit | c06995b34d604a37f80ee1174fcb3530dbd59206 (patch) | |
tree | dc1b063644fb484f266e95e12c66bbbfdfa2d38c /src/nvim/spellfile.c | |
parent | 26251d6d0681194e7dc57fa2dfb8857576faed21 (diff) | |
parent | 9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71 (diff) | |
download | rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.tar.gz rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.tar.bz2 rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.zip |
Merge #7858 'vim-patch: spell-related patches'
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r-- | src/nvim/spellfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 1f7f616782..df066e7ad3 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -3656,7 +3656,7 @@ static int spell_read_wordfile(spellinfo_T *spin, char_u *fname) flags |= WF_REGION; l = *p - '0'; - if (l > spin->si_region_count) { + if (l == 0 || l > spin->si_region_count) { smsg(_("Invalid region nr in %s line %d: %s"), fname, lnum, p); break; |