> On 5 May 2016, at 5:14 pm, Bram Moolenaar <[email protected]> wrote:
> 
> Andrew Stewart wrote:
> 
>>> On 4 May 2016, at 8:49 pm, Bram Moolenaar <[email protected]> wrote:
>>>> Regarding redrawing: adding a redraw! as the last line of my close
>>>> handler doesn't redraw the screen.  Should I be doing this somewhere
>>>> else?
>>> 
>>> Hmm, does it redraw the moment you type something?
>> 
>> Yes it does.  In my case the signs are suddenly displayed.
>> 
>>> It looks like the function to redraw after a callback is not invoked
>>> after using the close_cb.  I'll make a patch for that.
>> 
>> Thanks.  I upgraded to Vim 7.4.1817 and reinstated the redraw! as the
>> last line of my close_cb handler.  Unfortunately the problem remains.
> 
> It looks like it works for me, with this test:
> 
> func! CloseCb(chan)
>  syn match Error "foo"
> endfunc
> 
> call ch_logfile('channellog', 'w')
> 
> call job_start('echo nothing', {'close_cb': 'CloseCb'})
> 
> The "foo" gets highlighted right away.

The "foo" gets highlighted right away for me too.  It also works as expected if 
I place a sign instead.

So I don't know why the signs placed by the callback in my actual code aren't 
being displayed until I move the cursor.  I also don't know what to do to 
investigate further.

-- 
-- 
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.

Raspunde prin e-mail lui