diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-07-09 06:58:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-09 06:58:27 -0400 |
commit | adaacdd71a70b76bc686113eaece47a6264701a5 (patch) | |
tree | 4be6079a8571316cbd89e3f310981b080f2815a4 /src/nvim/spell.c | |
parent | 6cee9d1a17177f4ccdf34283c6ed3ffaa98b32cc (diff) | |
parent | 059e9785dc2fea0a15344162de4a5a7c8da6f491 (diff) | |
download | rneovim-adaacdd71a70b76bc686113eaece47a6264701a5.tar.gz rneovim-adaacdd71a70b76bc686113eaece47a6264701a5.tar.bz2 rneovim-adaacdd71a70b76bc686113eaece47a6264701a5.zip |
Merge #4648 from jamessan/packages
packages (vim-patch:7.4.{1384,1388,1396,1478,1479,1480,1486,1492,1499,1528,1550,1551,1552,1553,1554,1596,1649,1712,1840,1973,1986})
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index fba6fac821..610fb660e7 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2317,16 +2317,14 @@ static void spell_load_lang(char_u *lang) for (round = 1; round <= 2; ++round) { // Find the first spell file for "lang" in 'runtimepath' and load it. vim_snprintf((char *)fname_enc, sizeof(fname_enc) - 5, - "spell/%s.%s.spl", - lang, spell_enc()); - r = do_in_runtimepath(fname_enc, FALSE, spell_load_cb, &sl); + "spell/%s.%s.spl", lang, spell_enc()); + r = do_in_runtimepath(fname_enc, 0, spell_load_cb, &sl); if (r == FAIL && *sl.sl_lang != NUL) { // Try loading the ASCII version. vim_snprintf((char *)fname_enc, sizeof(fname_enc) - 5, - "spell/%s.ascii.spl", - lang); - r = do_in_runtimepath(fname_enc, FALSE, spell_load_cb, &sl); + "spell/%s.ascii.spl", lang); + r = do_in_runtimepath(fname_enc, 0, spell_load_cb, &sl); if (r == FAIL && *sl.sl_lang != NUL && round == 1 && apply_autocmds(EVENT_SPELLFILEMISSING, lang, @@ -2354,7 +2352,7 @@ static void spell_load_lang(char_u *lang) } else if (sl.sl_slang != NULL) { // At least one file was loaded, now load ALL the additions. STRCPY(fname_enc + STRLEN(fname_enc) - 3, "add.spl"); - do_in_runtimepath(fname_enc, TRUE, spell_load_cb, &sl); + do_in_runtimepath(fname_enc, DIP_ALL, spell_load_cb, &sl); } } |