updated for version 7.3.983
Problem: Uneccessary temp variable.
Solution: Remove the variable.
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 9ae59ae..ba3a0f4 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -2833,7 +2833,6 @@
int old_reglnum = -1;
int reginput_updated = FALSE;
thread_T *t;
- char_u *cc;
char_u *old_reginput = NULL;
char_u *old_regline = NULL;
nfa_state_T *sta;
@@ -2931,7 +2930,6 @@
}
if (c == NUL)
n = 0;
- cc = reginput;
/* swap lists */
thislist = &list[flag];
@@ -3261,12 +3259,12 @@
break;
case NFA_KWORD: /* \k */
- result = vim_iswordp(cc);
+ result = vim_iswordp(reginput);
ADD_POS_NEG_STATE(t->state);
break;
case NFA_SKWORD: /* \K */
- result = !VIM_ISDIGIT(c) && vim_iswordp(cc);
+ result = !VIM_ISDIGIT(c) && vim_iswordp(reginput);
ADD_POS_NEG_STATE(t->state);
break;
@@ -3281,12 +3279,12 @@
break;
case NFA_PRINT: /* \p */
- result = ptr2cells(cc) == 1;
+ result = ptr2cells(reginput) == 1;
ADD_POS_NEG_STATE(t->state);
break;
case NFA_SPRINT: /* \P */
- result = !VIM_ISDIGIT(c) && ptr2cells(cc) == 1;
+ result = !VIM_ISDIGIT(c) && ptr2cells(reginput) == 1;
ADD_POS_NEG_STATE(t->state);
break;
diff --git a/src/version.c b/src/version.c
index a57f685..2e685dc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 983,
+/**/
982,
/**/
981,