comparison src/ex_getln.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 220bdea4f579
children 2fc1f3346bfb
comparison
equal deleted inserted replaced
4804:62663cfeb216 4805:66803af09906
4715 tab[i].func, tab[i].escaped); 4715 tab[i].func, tab[i].escaped);
4716 break; 4716 break;
4717 } 4717 }
4718 } 4718 }
4719 4719
4720 vim_free(regmatch.regprog); 4720 vim_regfree(regmatch.regprog);
4721 4721
4722 return ret; 4722 return ret;
4723 #endif /* FEAT_CMDL_COMPL */ 4723 #endif /* FEAT_CMDL_COMPL */
4724 } 4724 }
4725 4725
5783 i += hislen; 5783 i += hislen;
5784 } while (i != idx); 5784 } while (i != idx);
5785 if (history[histype][idx].hisstr == NULL) 5785 if (history[histype][idx].hisstr == NULL)
5786 hisidx[histype] = -1; 5786 hisidx[histype] = -1;
5787 } 5787 }
5788 vim_free(regmatch.regprog); 5788 vim_regfree(regmatch.regprog);
5789 return found; 5789 return found;
5790 } 5790 }
5791 5791
5792 /* 5792 /*
5793 * Remove an indexed entry from a history. 5793 * Remove an indexed entry from a history.