mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -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:
@@ -1610,8 +1610,6 @@ x_IOerror_handler(dpy)
|
||||
static int
|
||||
x_connect_to_server()
|
||||
{
|
||||
regmatch_T regmatch;
|
||||
|
||||
#if defined(FEAT_CLIENTSERVER)
|
||||
if (x_force_connect)
|
||||
return TRUE;
|
||||
@@ -1622,9 +1620,7 @@ x_connect_to_server()
|
||||
/* Check for a match with "exclude:" from 'clipboard'. */
|
||||
if (clip_exclude_prog != NULL)
|
||||
{
|
||||
regmatch.rm_ic = FALSE; /* Don't ignore case */
|
||||
regmatch.regprog = clip_exclude_prog;
|
||||
if (vim_regexec(®match, T_NAME, (colnr_T)0))
|
||||
if (vim_regexec_prog(&clip_exclude_prog, FALSE, T_NAME, (colnr_T)0))
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user