diff src/drawline.c @ 18337:b08dbcb42399 v8.1.2163

patch 8.1.2163: cannot build with +spell but without +syntax Commit: https://github.com/vim/vim/commit/b2fe1d676f28af92989a842d4e8708dddf157b3d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 16 21:33:40 2019 +0200 patch 8.1.2163: cannot build with +spell but without +syntax Problem: Cannot build with +spell but without +syntax. Solution: Add #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Oct 2019 21:45:03 +0200
parents 3e657635ca36
children 596a04c49d76
line wrap: on
line diff
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1421,7 +1421,9 @@ win_line(
 			syntax_attr = prev_syntax_attr;
 		    else
 		    {
+# ifdef FEAT_SPELL
 			can_spell = TRUE;
+# endif
 			syntax_attr = get_syntax_attr((colnr_T)v,
 # ifdef FEAT_SPELL
 						has_spell ? &can_spell :