idx = diff_buf_idx(wp->w_buffer);
if (idx == DB_COUNT) /* cannot happen */
+ {
+ vim_free(line_org);
return FALSE;
+ }
/* search for a change that includes "lnum" in the list of diffblocks. */
for (dp = curtab->tp_first_diff; dp != NULL; dp = dp->df_next)
if (lnum <= dp->df_lnum[idx] + dp->df_count[idx])
break;
if (dp == NULL || diff_check_sanity(curtab, dp) == FAIL)
+ {
+ vim_free(line_org);
return FALSE;
+ }
off = lnum - dp->df_lnum[idx];
buf = alloc(LSIZE);
if (buf == NULL)
return;
+ regmatch.regprog = NULL; /* so that we can goto theend */
/* If 'infercase' is set, don't use 'smartcase' here */
save_p_scs = p_scs;
char_u *pat_esc = vim_strsave_escaped(pat, (char_u *)"\\");
if (pat_esc == NULL)
- return ;
+ goto theend ;
i = (int)STRLEN(pat_esc) + 10;
ptr = alloc(i);
if (ptr == NULL)
{
vim_free(pat_esc);
- return;
+ goto theend;
}
vim_snprintf((char *)ptr, i, "^\\s*\\zs\\V%s", pat_esc);
regmatch.regprog = vim_regcomp(ptr, RE_MAGIC);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 200,
/**/
199,
/**/