diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-29 12:50:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 12:50:17 +0100 |
commit | 50faf02f43d7f1a56ec2023028fca7c72dbce83e (patch) | |
tree | 50ac366830d44eb27a8c7a183c6ae040f771468a /src/drawscreen.c | |
parent | 572a4433c8276d8e8f228a09f43b11afe0c85f6f (diff) |
patch 9.0.0620: matchaddpos() can only add up to 8 matchesv9.0.0620
Problem: matchaddpos() can only add up to 8 matches.
Solution: Allocate the array of positions. (closes #11248)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index 4e8ef4e876..47066995a5 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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 |