mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1750
Problem: When a buffer gets updated while in command line mode, the screen may be messed up. Solution: Postpone the redraw when the screen is scrolled.
This commit is contained in:
@@ -1431,6 +1431,7 @@ channel_write_new_lines(buf_T *buf)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Invoke the "callback" on channel "channel".
|
* Invoke the "callback" on channel "channel".
|
||||||
|
* This does not redraw but sets channel_need_redraw;
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
invoke_callback(channel_T *channel, char_u *callback, partial_T *partial,
|
invoke_callback(channel_T *channel, char_u *callback, partial_T *partial,
|
||||||
@@ -1445,8 +1446,7 @@ invoke_callback(channel_T *channel, char_u *callback, partial_T *partial,
|
|||||||
call_func(callback, (int)STRLEN(callback),
|
call_func(callback, (int)STRLEN(callback),
|
||||||
&rettv, 2, argv, 0L, 0L, &dummy, TRUE, partial, NULL);
|
&rettv, 2, argv, 0L, 0L, &dummy, TRUE, partial, NULL);
|
||||||
clear_tv(&rettv);
|
clear_tv(&rettv);
|
||||||
|
channel_need_redraw = TRUE;
|
||||||
redraw_after_callback();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -2009,6 +2009,10 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Invoke the callback at "cbhead".
|
||||||
|
* Does not redraw but sets channel_need_redraw.
|
||||||
|
*/
|
||||||
static void
|
static void
|
||||||
invoke_one_time_callback(
|
invoke_one_time_callback(
|
||||||
channel_T *channel,
|
channel_T *channel,
|
||||||
@@ -2099,6 +2103,7 @@ append_to_buffer(buf_T *buffer, char_u *msg, channel_T *channel)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Invoke a callback for "channel"/"part" if needed.
|
* Invoke a callback for "channel"/"part" if needed.
|
||||||
|
* This does not redraw but sets channel_need_redraw when redraw is needed.
|
||||||
* Return TRUE when a message was handled, there might be another one.
|
* Return TRUE when a message was handled, there might be another one.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
@@ -3468,13 +3473,10 @@ channel_parse_messages(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (channel_need_redraw && must_redraw)
|
if (channel_need_redraw)
|
||||||
{
|
{
|
||||||
channel_need_redraw = FALSE;
|
channel_need_redraw = FALSE;
|
||||||
update_screen(0);
|
redraw_after_callback();
|
||||||
setcursor();
|
|
||||||
cursor_on();
|
|
||||||
out_flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@@ -748,6 +748,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 */
|
||||||
|
/**/
|
||||||
|
1750,
|
||||||
/**/
|
/**/
|
||||||
1749,
|
1749,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user