1
0
forked from aniani/vim

patch 8.2.0945: cannot use "z=" when 'spell' is off

Problem:    Cannot use "z=" when 'spell' is off.
Solution:   Make "z=" work even when 'spell' is off. (Christian Brabandt,
            Gary Johnson, closes #6227)
This commit is contained in:
Bram Moolenaar
2020-06-10 15:32:08 +02:00
parent 253ea9fa42
commit 152e79e94b
7 changed files with 105 additions and 14 deletions

View File

@@ -1225,7 +1225,7 @@ no_spell_checking(win_T *wp)
if (!wp->w_p_spell || *wp->w_s->b_p_spl == NUL
|| wp->w_s->b_langp.ga_len == 0)
{
emsg(_("E756: Spell checking is not enabled"));
emsg(_(e_no_spell));
return TRUE;
}
return FALSE;