mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
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:
@@ -4717,7 +4717,7 @@ ExpandFromContext(xp, pat, num_file, file, options)
|
||||
}
|
||||
}
|
||||
|
||||
vim_free(regmatch.regprog);
|
||||
vim_regfree(regmatch.regprog);
|
||||
|
||||
return ret;
|
||||
#endif /* FEAT_CMDL_COMPL */
|
||||
@@ -5785,7 +5785,7 @@ del_history_entry(histype, str)
|
||||
if (history[histype][idx].hisstr == NULL)
|
||||
hisidx[histype] = -1;
|
||||
}
|
||||
vim_free(regmatch.regprog);
|
||||
vim_regfree(regmatch.regprog);
|
||||
return found;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user