mirror of
https://github.com/vim/vim.git
synced 2025-10-29 09:37:35 -04:00
patch 9.0.0206: redraw flags are not named specifically
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
This commit is contained in:
10
src/match.c
10
src/match.c
@@ -39,7 +39,7 @@ match_add(
|
||||
matchitem_T *m;
|
||||
int hlg_id;
|
||||
regprog_T *regprog = NULL;
|
||||
int rtype = SOME_VALID;
|
||||
int rtype = UPD_SOME_VALID;
|
||||
|
||||
if (*grp == NUL || (pat != NULL && *pat == NUL))
|
||||
return -1;
|
||||
@@ -192,7 +192,7 @@ match_add(
|
||||
}
|
||||
m->pos.toplnum = toplnum;
|
||||
m->pos.botlnum = botlnum;
|
||||
rtype = VALID;
|
||||
rtype = UPD_VALID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ match_delete(win_T *wp, int id, int perr)
|
||||
{
|
||||
matchitem_T *cur = wp->w_match_head;
|
||||
matchitem_T *prev = cur;
|
||||
int rtype = SOME_VALID;
|
||||
int rtype = UPD_SOME_VALID;
|
||||
|
||||
if (id < 1)
|
||||
{
|
||||
@@ -269,7 +269,7 @@ match_delete(win_T *wp, int id, int perr)
|
||||
wp->w_buffer->b_mod_bot = cur->pos.botlnum;
|
||||
wp->w_buffer->b_mod_xlines = 0;
|
||||
}
|
||||
rtype = VALID;
|
||||
rtype = UPD_VALID;
|
||||
}
|
||||
vim_free(cur);
|
||||
redraw_win_later(wp, rtype);
|
||||
@@ -292,7 +292,7 @@ clear_matches(win_T *wp)
|
||||
vim_free(wp->w_match_head);
|
||||
wp->w_match_head = m;
|
||||
}
|
||||
redraw_win_later(wp, SOME_VALID);
|
||||
redraw_win_later(wp, UPD_SOME_VALID);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user