forked from aniani/vim
updated for version 7.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().
This commit is contained in:
@@ -7082,7 +7082,7 @@ end_search_hl()
|
||||
{
|
||||
if (search_hl.rm.regprog != NULL)
|
||||
{
|
||||
vim_free(search_hl.rm.regprog);
|
||||
vim_regfree(search_hl.rm.regprog);
|
||||
search_hl.rm.regprog = NULL;
|
||||
}
|
||||
}
|
||||
@@ -7284,7 +7284,7 @@ next_search_hl(win, shl, lnum, mincol)
|
||||
if (shl == &search_hl)
|
||||
{
|
||||
/* don't free regprog in the match list, it's a copy */
|
||||
vim_free(shl->rm.regprog);
|
||||
vim_regfree(shl->rm.regprog);
|
||||
no_hlsearch = TRUE;
|
||||
}
|
||||
shl->rm.regprog = NULL;
|
||||
|
Reference in New Issue
Block a user