Christian Brabandt wrote:

> Bram,
> consider this:
> vim -u NONE -N ~/.vim/vimrc
> :syn on
> :set conceallevel=1 concealcursor=n
> :syn match MyConceal /s/ containedin=ALL conceal
> 
> Note, that the 's' will be set to '-'.
> This is different than expected:
> 
> ,----[ :h 'conceallevel' ]-
> |     Determine how text with the "conceal" syntax attribute 
> |     |:syn-conceal|
> |     is shown:
> | 
> |     Value           Effect ~
> |     0               Text is shown normally
> |     1               Each block of concealed text is replaced with one
> |                     character.  If the syntax item does not have a custom
> |                     replacement character defined (see |:syn-cchar|) the
> |                     character defined in 'listchars' is used (default is a
> |                     space).
> |                     It is highlighted with the "Conceal" highlight group.
> |     2               Concealed text is completely hidden unless it has a
> |                     custom replacement character defined (see
> |                     |:syn-cchar|).
> |     3               Concealed text is completely hidden.
> `----
> 
> According to the documentation, all 's' should be set to spaces, but 
> since in globals.h lcs_conceal is initialized with '-' the hyphen will 
> be used. We should either adjust the documentation, or set the default 
> for listchars to "eol:$,conceal:-"

Considering that resetting the listchars to its default does get you a
space, we need to fix the initial value.  I'll make a patch (it's easy,
I'll leave the difficult stuff to you :-).

-- 
hundred-and-one symptoms of being an internet addict:
238. You think faxes are old-fashioned.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to