On Monday, July 11, 2016 at 12:13:40 AM UTC+3, Bram Moolenaar wrote:
> Ramel Eshed wrote:
> 
> > I'm not sure if this patch was supposed to fix the issue completely, but 
> > there are still issues with the gui cursor.
> > 
> > 1) When job output is redirected to a buffer:
> > 
> > vim -u NONE -N
> > :new
> > :call job_start(['/bin/sh', '-c', 'ls -R / | head -500000'], { 'out_io': 
> > 'buffer', 'out_buf': 1 })
> > 
> > -The cursor disappears from the upper window (most of the time). Also, when 
> > the window is not scrolled (if you insert 2 letters before the :new) the 
> > cursor doesn't blink normally.
> 
> It appears in this case that Vim is 100% busy, there is no time to
> update the screen.  I added a flush and that helps a little bit.  But I
> don't see how this can be fixed.  Even the timer isn't called at the
> right time.  Intentionally delaying the read from the channel doesn't
> seem like a good solution.
> 
I don't see the first issue now (cursor disappears from the upper window). The 
cursor still doesn't blink normally though. It doesn't happen in the terminal.
> 
> > 2) When updating the status line:
> > 
> > source the following script:
> > 
> > set laststatus=2
> > let tcount = 0
> > 
> > func! Timer_cb(timer)
> >     let g:tcount += 1
> >     call setbufvar(1, '&stl', g:tcount)
> > endfunc
> > 
> > call timer_start(50, 'Timer_cb', {'repeat': 100})
> > 
> > Both behave very well in the terminal.
> 
> I should be able to fix this.
>
Looks good now. Thanks! 

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