Steps to reproduce: start a new vim instance with "vim -u NONE -N" Enter a few lines with "&&" on each line, ie 6o&&<Esc> enter commands :syntax on :set conceallevel=1 :syn match testmatch '[&][&]' conceal cchar=x
result: first "&&" gets invisible, instead of changed to "x". Redrawing the screen and the problem goes away. The problem seems to be that the first syntax entry gets seqnr 0, which also means "no current syntax group" in win_line. Patch attached to fix this (first entry gets seqnr 1). The drawing issue was first uncovered by Clinton McKay (@McKizzle at github) in a neovim screen test https://github.com/neovim/neovim/pull/2055 (and the test case above was extracted from it) -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # User Björn Linse <[email protected]> # Date 1426940661 -3600 # Sat Mar 21 13:24:21 2015 +0100 # Node ID 4fcab61b53d61a69a78d08cc64c24aefce2e7cb7 # Parent c8ea399de9be53d8b26745744b92d93dad90eeb8 begin syntax sequence with 1 (0 means no syntax group) diff -r c8ea399de9be -r 4fcab61b53d6 src/syntax.c --- a/src/syntax.c Fri Mar 20 19:06:06 2015 +0100 +++ b/src/syntax.c Sat Mar 21 13:24:21 2015 +0100 @@ -311,7 +311,7 @@ but contained groups */ #ifdef FEAT_CONCEAL -static int next_seqnr = 0; /* value to use for si_seqnr */ +static int next_seqnr = 1; /* value to use for si_seqnr */ #endif /*
