mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.0620: matchaddpos() can only add up to 8 matches
Problem: matchaddpos() can only add up to 8 matches. Solution: Allocate the array of positions. (closes #11248)
This commit is contained in:
@@ -1614,13 +1614,13 @@ win_update(win_T *wp)
|
||||
|
||||
while (cur != NULL)
|
||||
{
|
||||
if (cur->match.regprog != NULL
|
||||
&& re_multiline(cur->match.regprog))
|
||||
if (cur->mit_match.regprog != NULL
|
||||
&& re_multiline(cur->mit_match.regprog))
|
||||
{
|
||||
top_to_mod = TRUE;
|
||||
break;
|
||||
}
|
||||
cur = cur->next;
|
||||
cur = cur->mit_next;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user