diff src/evalfunc.c @ 11553:cbceef33af7a v8.0.0659

patch 8.0.0659: no test for conceal mode commit https://github.com/vim/vim/commit/4d785895d1f8b54cdd3fabd87446ca692f49e94e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 22:00:50 2017 +0200 patch 8.0.0659: no test for conceal mode Problem: No test for conceal mode. Solution: Add a conceal mode test. (Dominique Pelle, closes https://github.com/vim/vim/issues/1783)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Jun 2017 22:15:04 +0200
parents 578df034735d
children 0ec755ff1fe2
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -11841,8 +11841,8 @@ f_synconcealed(typval_T *argvars UNUSED,
 	    if ((syntax_flags & HL_CONCEAL) && curwin->w_p_cole < 3)
 	    {
 		cchar = syn_get_sub_char();
-		if (cchar == NUL && curwin->w_p_cole == 1 && lcs_conceal != NUL)
-		    cchar = lcs_conceal;
+		if (cchar == NUL && curwin->w_p_cole == 1)
+		    cchar = (lcs_conceal == NUL) ? ' ' : lcs_conceal;
 		if (cchar != NUL)
 		{
 # ifdef FEAT_MBYTE