Mercurial > vim
changeset 1112:56695f1182f0 v7.0.238
updated for version 7.0-238
author | vimboss |
---|---|
date | Tue, 01 May 2007 20:04:53 +0000 |
parents | 53fd0a213cff |
children | 1df41c98fc2e |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -6477,9 +6477,15 @@ next_search_hl(win, shl, lnum, mincol) if (called_emsg) { /* Error while handling regexp: stop using this regexp. */ - vim_free(shl->rm.regprog); + if (shl == &search_hl) + { + /* don't free the regprog in match_hl[], it's a copy */ + vim_free(shl->rm.regprog); + no_hlsearch = TRUE; + } shl->rm.regprog = NULL; - no_hlsearch = TRUE; + shl->lnum = 0; + got_int = FALSE; /* avoid the "Type :quit to exit Vim" message */ break; } if (nmatched == 0)