comparison src/spell.c @ 20786:90b96fa35e4b v8.2.0945

patch 8.2.0945: cannot use "z=" when 'spell' is off Commit: https://github.com/vim/vim/commit/152e79e94bb935e75b866bd55479648cde11066a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 10 15:32:08 2020 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Jun 2020 15:45:04 +0200
parents 813b9a7064a4
children 411348fb49ba
comparison
equal deleted inserted replaced
20785:919ff930619d 20786:90b96fa35e4b
1223 no_spell_checking(win_T *wp) 1223 no_spell_checking(win_T *wp)
1224 { 1224 {
1225 if (!wp->w_p_spell || *wp->w_s->b_p_spl == NUL 1225 if (!wp->w_p_spell || *wp->w_s->b_p_spl == NUL
1226 || wp->w_s->b_langp.ga_len == 0) 1226 || wp->w_s->b_langp.ga_len == 0)
1227 { 1227 {
1228 emsg(_("E756: Spell checking is not enabled")); 1228 emsg(_(e_no_spell));
1229 return TRUE; 1229 return TRUE;
1230 } 1230 }
1231 return FALSE; 1231 return FALSE;
1232 } 1232 }
1233 1233