mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.4.519
Problem: Crash when using syntax highlighting. Solution: When regprog is freed and replaced, store the result.
This commit is contained in:
@@ -739,7 +739,6 @@ debuggy_find(file, fname, after, gap, fp)
|
||||
struct debuggy *bp;
|
||||
int i;
|
||||
linenr_T lnum = 0;
|
||||
regmatch_T regmatch;
|
||||
char_u *name = fname;
|
||||
int prev_got_int;
|
||||
|
||||
@@ -771,8 +770,6 @@ debuggy_find(file, fname, after, gap, fp)
|
||||
#endif
|
||||
(bp->dbg_lnum > after && (lnum == 0 || bp->dbg_lnum < lnum)))))
|
||||
{
|
||||
regmatch.regprog = bp->dbg_prog;
|
||||
regmatch.rm_ic = FALSE;
|
||||
/*
|
||||
* Save the value of got_int and reset it. We don't want a
|
||||
* previous interruption cancel matching, only hitting CTRL-C
|
||||
@@ -780,7 +777,7 @@ debuggy_find(file, fname, after, gap, fp)
|
||||
*/
|
||||
prev_got_int = got_int;
|
||||
got_int = FALSE;
|
||||
if (vim_regexec(®match, name, (colnr_T)0))
|
||||
if (vim_regexec_prog(&bp->dbg_prog, FALSE, name, (colnr_T)0))
|
||||
{
|
||||
lnum = bp->dbg_lnum;
|
||||
if (fp != NULL)
|
||||
|
Reference in New Issue
Block a user