Bram Moolenaar wrote: > The other problem you mentioned, that the third argument is different > every time, is that really every time, also when still inside the same > match? I think that requires a syntax item that spans more than > one displayed character. > > When doing the same line again, syncing happens and will set new IDs for > the matched items, that is normal.
Hi Bram The 3rd value returned by synconcealed() is different for each call, even when inside the same match. In the code review comments I had this example with a help page that contains concealed text: $ vim -u NONE -c 'set conceallevel=1|syntax on|help' :echo synconcealed(1, 1) [1, '', 33] :echo synconcealed(1, 1) [1, '', 43] :echo synconcealed(1, 1) [1, '', 53] It's still happening with the latest vim-8.0.662 but it now returns different values somehow: $ vim -u NONE -c 'set conceallevel=1|syntax on|help' :echo synconcealed(1, 1) [1, ' ', 31] :echo synconcealed(1, 1) [1, ' ', 37] :echo synconcealed(1, 1) [1, ' ', 43] That makes the 3rd value returned by synconcealed() unusable. Regards Dominique -- -- 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.
