Mercurial > vim
diff src/misc1.c @ 4805:66803af09906 v7.3.1149
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().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 08 Jun 2013 18:19:48 +0200 |
parents | 77ecab3bb207 |
children | bcb84438bb5b |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -456,8 +456,8 @@ get_number_indent(lnum) pos.coladd = 0; #endif } - } - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); + } if (pos.lnum == 0 || *ml_get_pos(&pos) == NUL) return -1; @@ -9751,7 +9751,7 @@ dos_expandpath( # endif #endif vim_free(buf); - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); vim_free(matchname); matches = gap->ga_len - start_len; @@ -9993,7 +9993,7 @@ unix_expandpath(gap, path, wildoff, flag } vim_free(buf); - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); matches = gap->ga_len - start_len; if (matches > 0) @@ -10358,7 +10358,7 @@ theend: vim_free(in_curdir); } ga_clear_strings(&path_ga); - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); if (sort_again) remove_duplicates(gap);