comparison src/screen.c @ 1112:56695f1182f0 v7.0.238

updated for version 7.0-238
author vimboss
date Tue, 01 May 2007 20:04:53 +0000
parents 10d7ebdbe8a3
children 8906c10ecbb0
comparison
equal deleted inserted replaced
1111:53fd0a213cff 1112:56695f1182f0
6475 shl->lnum = lnum; 6475 shl->lnum = lnum;
6476 nmatched = vim_regexec_multi(&shl->rm, win, shl->buf, lnum, matchcol); 6476 nmatched = vim_regexec_multi(&shl->rm, win, shl->buf, lnum, matchcol);
6477 if (called_emsg) 6477 if (called_emsg)
6478 { 6478 {
6479 /* Error while handling regexp: stop using this regexp. */ 6479 /* Error while handling regexp: stop using this regexp. */
6480 vim_free(shl->rm.regprog); 6480 if (shl == &search_hl)
6481 {
6482 /* don't free the regprog in match_hl[], it's a copy */
6483 vim_free(shl->rm.regprog);
6484 no_hlsearch = TRUE;
6485 }
6481 shl->rm.regprog = NULL; 6486 shl->rm.regprog = NULL;
6482 no_hlsearch = TRUE; 6487 shl->lnum = 0;
6488 got_int = FALSE; /* avoid the "Type :quit to exit Vim" message */
6483 break; 6489 break;
6484 } 6490 }
6485 if (nmatched == 0) 6491 if (nmatched == 0)
6486 { 6492 {
6487 shl->lnum = 0; /* no match found */ 6493 shl->lnum = 0; /* no match found */