Mercurial > vim
comparison src/ex_eval.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 | 04736b4030ec |
children | 064e2a080e2e |
comparison
equal
deleted
inserted
replaced
4804:62663cfeb216 | 4805:66803af09906 |
---|---|
1574 prev_got_int = got_int; | 1574 prev_got_int = got_int; |
1575 got_int = FALSE; | 1575 got_int = FALSE; |
1576 caught = vim_regexec_nl(®match, current_exception->value, | 1576 caught = vim_regexec_nl(®match, current_exception->value, |
1577 (colnr_T)0); | 1577 (colnr_T)0); |
1578 got_int |= prev_got_int; | 1578 got_int |= prev_got_int; |
1579 vim_free(regmatch.regprog); | 1579 vim_regfree(regmatch.regprog); |
1580 } | 1580 } |
1581 } | 1581 } |
1582 } | 1582 } |
1583 | 1583 |
1584 if (caught) | 1584 if (caught) |