Skip to content
Snippets Groups Projects
Commit 78eae9aa authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.3.1116

Problem:    Can't build without Visual mode.
Solution:   Add #ifdefs.
parent 5ebc09b4
No related branches found
Tags v7.3.1116
No related merge requests found
......@@ -181,7 +181,9 @@ enum
NFA_MARK, /* Match mark */
NFA_MARK_GT, /* Match > mark */
NFA_MARK_LT, /* Match < mark */
#ifdef FEAT_VISUAL
NFA_VISUAL, /* Match Visual area */
#endif
NFA_FIRST_NL = NFA_ANY + ADD_NL,
NFA_LAST_NL = NFA_NUPPER + ADD_NL,
......@@ -963,9 +965,11 @@ nfa_regatom()
EMIT(NFA_CURSOR);
break;
#ifdef FEAT_VISUAL
case 'V':
EMIT(NFA_VISUAL);
break;
#endif
case '[':
/* TODO: \%[abc] not supported yet */
......@@ -1955,7 +1959,9 @@ nfa_set_code(c)
case NFA_MARK_GT: STRCPY(code, "NFA_MARK_GT "); break;
case NFA_MARK_LT: STRCPY(code, "NFA_MARK_LT "); break;
case NFA_CURSOR: STRCPY(code, "NFA_CURSOR "); break;
#ifdef FEAT_VISUAL
case NFA_VISUAL: STRCPY(code, "NFA_VISUAL "); break;
#endif
case NFA_STAR: STRCPY(code, "NFA_STAR "); break;
case NFA_STAR_NONGREEDY: STRCPY(code, "NFA_STAR_NONGREEDY "); break;
......@@ -4790,12 +4796,14 @@ nfa_regmatch(prog, start, submatch, m)
t->pim, &listidx);
break;
#ifdef FEAT_VISUAL
case NFA_VISUAL:
result = reg_match_visual();
if (result)
addstate_here(thislist, t->state->out, &t->subs,
t->pim, &listidx);
break;
#endif
default: /* regular character */
{
......
......@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1116,
/**/
1115,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment