1
0
forked from aniani/vim

patch 8.0.0778: in a terminal the cursor may be hidden

Problem:    In a terminal the cursor may be hidden and screen updating lags
            behind. (Nazri Ramliy)
Solution:   Switch the cursor on and flush output when needed. (Ozaki Kiichi)
This commit is contained in:
Bram Moolenaar 2017-07-26 21:49:37 +02:00
parent a1b5b09281
commit 4cc93dc85a
2 changed files with 6 additions and 3 deletions

View File

@ -321,13 +321,14 @@ term_write_job_output(term_T *term, char_u *msg, size_t len)
static void static void
update_cursor(term_T *term, int redraw) update_cursor(term_T *term, int redraw)
{ {
/* TODO: this should not always be needed */
setcursor(); setcursor();
if (redraw && term->tl_buffer == curbuf && term->tl_cursor_visible) if (redraw && term->tl_buffer == curbuf)
{ {
if (term->tl_cursor_visible)
cursor_on();
out_flush(); out_flush();
#ifdef FEAT_GUI #ifdef FEAT_GUI
if (gui.in_use) if (gui.in_use && term->tl_cursor_visible)
gui_update_cursor(FALSE, FALSE); gui_update_cursor(FALSE, FALSE);
#endif #endif
} }

View File

@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
778,
/**/ /**/
777, 777,
/**/ /**/