Hi Bram!
On Do, 27 Okt 2016, Bram Moolenaar wrote:
>
> Christian Brabandt wrote:
>
> > Bram,
> > the attached patch fixes #1092. This happens since patch 7.4.792 which
> > resets prev_syntax_id to zero, whenever a match ends within a portion of
> > concealed text. I think that part was not supposed to be there from the
> > beginning, so remove it. I attache a test for checking the result.
>
> Thanks. However, the test passes without the change in screen.c.
Oops, sorry about that. I believe a redraw! is missing:
diff --git a/src/testdir/test_matchadd_conceal.vim
b/src/testdir/test_matchadd_conceal.vim
index 610917f..d285a4c 100644
--- a/src/testdir/test_matchadd_conceal.vim
+++ b/src/testdir/test_matchadd_conceal.vim
@@ -281,6 +281,7 @@ function! Test_matchadd_and_syn_conceal()
call assert_notequal(screenattr(1, 11) , screenattr(1, 12))
call assert_equal(screenattr(1, 11) , screenattr(1, 32))
call matchadd('CheckedByCoq', '\%<2l\%>9c\%<16c')
+ redraw!
call assert_equal(expect, s:screenline(1))
call assert_notequal(screenattr(1, 10) , screenattr(1, 11))
call assert_notequal(screenattr(1, 11) , screenattr(1, 12))
Best,
Christian
--
Wenn zwei Menschen immer die gleichen Ansichten haben,
ist einer von ihnen überflüssig.
--
--
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.