mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.2-305
This commit is contained in:
parent
331dafdbb8
commit
19f990e497
14
src/screen.c
14
src/screen.c
@ -323,6 +323,7 @@ update_screen(type)
|
|||||||
int did_one;
|
int did_one;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Don't do anything if the screen structures are (not yet) valid. */
|
||||||
if (!screen_valid(TRUE))
|
if (!screen_valid(TRUE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -342,7 +343,9 @@ update_screen(type)
|
|||||||
if (curwin->w_lines_valid == 0 && type < NOT_VALID)
|
if (curwin->w_lines_valid == 0 && type < NOT_VALID)
|
||||||
type = NOT_VALID;
|
type = NOT_VALID;
|
||||||
|
|
||||||
if (!redrawing())
|
/* Postpone the redrawing when it's not needed and when being called
|
||||||
|
* recursively. */
|
||||||
|
if (!redrawing() || updating_screen)
|
||||||
{
|
{
|
||||||
redraw_later(type); /* remember type for next time */
|
redraw_later(type); /* remember type for next time */
|
||||||
must_redraw = type;
|
must_redraw = type;
|
||||||
@ -582,6 +585,7 @@ static void update_finish __ARGS((void));
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Prepare for updating one or more windows.
|
* Prepare for updating one or more windows.
|
||||||
|
* Caller must check for "updating_screen" already set to avoid recursiveness.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
update_prepare()
|
update_prepare()
|
||||||
@ -663,7 +667,9 @@ update_debug_sign(buf, lnum)
|
|||||||
doit = TRUE;
|
doit = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!doit)
|
/* Return when there is nothing to do or screen updating already
|
||||||
|
* happening. */
|
||||||
|
if (!doit || updating_screen)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* update all windows that need updating */
|
/* update all windows that need updating */
|
||||||
@ -696,6 +702,10 @@ update_debug_sign(buf, lnum)
|
|||||||
updateWindow(wp)
|
updateWindow(wp)
|
||||||
win_T *wp;
|
win_T *wp;
|
||||||
{
|
{
|
||||||
|
/* return if already busy updating */
|
||||||
|
if (updating_screen)
|
||||||
|
return;
|
||||||
|
|
||||||
update_prepare();
|
update_prepare();
|
||||||
|
|
||||||
#ifdef FEAT_CLIPBOARD
|
#ifdef FEAT_CLIPBOARD
|
||||||
|
@ -681,6 +681,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 */
|
||||||
|
/**/
|
||||||
|
305,
|
||||||
/**/
|
/**/
|
||||||
304,
|
304,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user