diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-01 18:32:08 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-02 07:28:38 +0800 |
| commit | 85c7d4f7a92326dcd70317b048bafe96c8051701 (patch) | |
| tree | fa1284ca2c4eccbaf495d8135c6bbd97f81cb646 /src/nvim/drawscreen.c | |
| parent | 01721aaa667f7fe32f5b9fbf7b6fd99cb775de48 (diff) | |
| download | rneovim-85c7d4f7a92326dcd70317b048bafe96c8051701.tar.gz rneovim-85c7d4f7a92326dcd70317b048bafe96c8051701.tar.bz2 rneovim-85c7d4f7a92326dcd70317b048bafe96c8051701.zip | |
vim-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 vim/vim#11248)
https://github.com/vim/vim/commit/50faf02f43d7f1a56ec2023028fca7c72dbce83e
Diffstat (limited to 'src/nvim/drawscreen.c')
| -rw-r--r-- | src/nvim/drawscreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index fdf70a081c..e2bf3ed60d 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -1126,12 +1126,12 @@ win_update_start: } else { const matchitem_T *cur = wp->w_match_head; 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; } } } |