Eiichi Sato wrote:

> Concealing the text below,
> 
>     |aaa>---|>------|$
>     |>------|>------|$
> 
>     :set ts=8 list listchars+=tab:>- cole=3
>     :syn keyword foo aaa conceal
> 
> yields,
> 
>     |>---|>------|$
>     |>------|>------|$
> .
> 
> In this example, displayed-width of the tabs remain unchanged,
> causing the table to break.
> 
> I attached a small patch to fix this as follows.
> 
>     |>------|>------|$
>     |>------|>------|$

I vaguely remember we discussed this before, but can't find it now.
It depends on whether you want to tabs to be computed on the actual text
or the displayed text.  I suppose that in many cases it's better to do
it based on the displayed text.

Let me include this patch, then we can see if it causes problems for
someone.

-- 
MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin,
      then shalt thou count to three, no more, no less.  Three shalt be the
      number thou shalt count, and the number of the counting shalt be three.
      Four shalt thou not count, neither count thou two, excepting that thou
      then proceed to three.  Five is right out.  Once the number three, being
      the third number, be reached, then lobbest thou thy Holy Hand Grenade of
      Antioch towards thou foe, who being naughty in my sight, shall snuff it.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- 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

Raspunde prin e-mail lui