mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
vim-patch:9.0.0206: redraw flags are not named specifically (#19913)
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
a4d158b3c8
This commit is contained in:
@@ -47,7 +47,7 @@ static int match_add(win_T *wp, const char *const grp, const char *const pat, in
|
||||
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;
|
||||
@@ -193,7 +193,7 @@ static int match_add(win_T *wp, const char *const grp, const char *const pat, in
|
||||
}
|
||||
m->pos.toplnum = toplnum;
|
||||
m->pos.botlnum = botlnum;
|
||||
rtype = VALID;
|
||||
rtype = UPD_VALID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ static int match_delete(win_T *wp, int id, bool perr)
|
||||
{
|
||||
matchitem_T *cur = wp->w_match_head;
|
||||
matchitem_T *prev = cur;
|
||||
int rtype = SOME_VALID;
|
||||
int rtype = UPD_SOME_VALID;
|
||||
|
||||
if (id < 1) {
|
||||
if (perr) {
|
||||
@@ -268,7 +268,7 @@ static int match_delete(win_T *wp, int id, bool perr)
|
||||
wp->w_buffer->b_mod_bot = cur->pos.botlnum;
|
||||
wp->w_buffer->b_mod_xlines = 0;
|
||||
}
|
||||
rtype = VALID;
|
||||
rtype = UPD_VALID;
|
||||
}
|
||||
xfree(cur);
|
||||
redraw_later(wp, rtype);
|
||||
@@ -287,7 +287,7 @@ void clear_matches(win_T *wp)
|
||||
xfree(wp->w_match_head);
|
||||
wp->w_match_head = m;
|
||||
}
|
||||
redraw_later(wp, SOME_VALID);
|
||||
redraw_later(wp, UPD_SOME_VALID);
|
||||
}
|
||||
|
||||
/// Get match from ID 'id' in window 'wp'.
|
||||
|
Reference in New Issue
Block a user