Dominique Pelle wrote: > The conceal feature is messing up alignment when using tabs. > > For example, content of ":help :index" looks misaligned and ugly > with ":set conceallevel=3" but looks well aligned with ":set conceallevel=0" > as shows in these 2 screenshots: > > http://dominique.pelle.free.fr/pic/help_conceallevel=0.png (good) > http://dominique.pelle.free.fr/pic/help_conceallevel=3.png (bad) > > You can reproduce the misaligned help page with: > > $ vim -u NONE -c 'set nocp conceallevel=3|syntax on|help :index' > > Attached patch fixes it. Patch extends length of tabs to compensate > for concealed chars before the tab on the line, so that text after the > tab is always aligned in the same way regardless of 'conceallevel'. > Note that this means that a tab can be longer than 'tabstop' to > compensate previous concealed chars.
There have been various problems with conceal mode. I'm afraid that another change might break this again. Can you please write a test for this problem? It should fail without the patch. Aligning might still be wrong when spaces are used instead of tabs, but that is impossible to make both work with concealing enabled and disabled. -- hundred-and-one symptoms of being an internet addict: 213. Your kids start referring to you as "that guy in front of the monitor." /// 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
