diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-08 18:19:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-08 18:19:48 +0200 |
commit | 473de61b0409f8f8c86585733f099f882122b280 (patch) | |
tree | 0c2b031a29a283c70d63368c38031517572d954c /src/window.c | |
parent | cd9c46265e4a12cf716187bc8188c7399797f806 (diff) | |
download | vim-git-473de61b0409f8f8c86585733f099f882122b280.tar.gz |
updated for version 7.3.1149v7.3.1149
Problem: New regexp engine: Matching plain text could be faster.
Solution: Detect a plain text match and handle it specifically. Add
vim_regfree().
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 41e77068f..881be8bbe 100644 --- a/src/window.c +++ b/src/window.c @@ -6818,7 +6818,7 @@ match_delete(wp, id, perr) wp->w_match_head = cur->next; else prev->next = cur->next; - vim_free(cur->match.regprog); + vim_regfree(cur->match.regprog); vim_free(cur->pattern); vim_free(cur); redraw_later(SOME_VALID); @@ -6837,7 +6837,7 @@ clear_matches(wp) while (wp->w_match_head != NULL) { m = wp->w_match_head->next; - vim_free(wp->w_match_head->match.regprog); + vim_regfree(wp->w_match_head->match.regprog); vim_free(wp->w_match_head->pattern); vim_free(wp->w_match_head); wp->w_match_head = m; |