Mercurial > vim
comparison src/drawscreen.c @ 30570:86683eee58ac v9.0.0620
patch 9.0.0620: matchaddpos() can only add up to 8 matches
Commit: https://github.com/vim/vim/commit/50faf02f43d7f1a56ec2023028fca7c72dbce83e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 29 12:50:17 2022 +0100
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 https://github.com/vim/vim/issues/11248)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 29 Sep 2022 14:00:09 +0200 |
parents | bb0e525e1393 |
children | 604d7d7aa043 |
comparison
equal
deleted
inserted
replaced
30569:c9568bf9c963 | 30570:86683eee58ac |
---|---|
1612 { | 1612 { |
1613 matchitem_T *cur = wp->w_match_head; | 1613 matchitem_T *cur = wp->w_match_head; |
1614 | 1614 |
1615 while (cur != NULL) | 1615 while (cur != NULL) |
1616 { | 1616 { |
1617 if (cur->match.regprog != NULL | 1617 if (cur->mit_match.regprog != NULL |
1618 && re_multiline(cur->match.regprog)) | 1618 && re_multiline(cur->mit_match.regprog)) |
1619 { | 1619 { |
1620 top_to_mod = TRUE; | 1620 top_to_mod = TRUE; |
1621 break; | 1621 break; |
1622 } | 1622 } |
1623 cur = cur->next; | 1623 cur = cur->mit_next; |
1624 } | 1624 } |
1625 } | 1625 } |
1626 #endif | 1626 #endif |
1627 } | 1627 } |
1628 | 1628 |