@@ -3789,7 +3789,7 @@ syn_cmd_enable(exarg_T *eap, int syncing UNUSED)
37893789 static void
37903790syn_cmd_reset (exarg_T * eap , int syncing UNUSED )
37913791{
3792- eap -> nextcmd = check_nextcmd ( eap -> arg );
3792+ set_nextcmd ( eap , eap -> arg );
37933793 if (!eap -> skip )
37943794 {
37953795 set_internal_string_var ((char_u * )"syntax_cmd" , (char_u * )"reset" );
@@ -3821,7 +3821,7 @@ syn_cmd_onoff(exarg_T *eap, char *name)
38213821{
38223822 char_u buf [100 ];
38233823
3824- eap -> nextcmd = check_nextcmd ( eap -> arg );
3824+ set_nextcmd ( eap , eap -> arg );
38253825 if (!eap -> skip )
38263826 {
38273827 STRCPY (buf , "so " );
@@ -3928,7 +3928,7 @@ syn_cmd_list(
39283928 arg = skipwhite (arg_end );
39293929 }
39303930 }
3931- eap -> nextcmd = check_nextcmd ( arg );
3931+ set_nextcmd ( eap , arg );
39323932}
39333933
39343934 static void
@@ -4921,7 +4921,7 @@ syn_cmd_keyword(exarg_T *eap, int syncing UNUSED)
49214921 }
49224922
49234923 if (rest != NULL )
4924- eap -> nextcmd = check_nextcmd ( rest );
4924+ set_nextcmd ( eap , rest );
49254925 else
49264926 semsg (_ (e_invarg2 ), arg );
49274927
@@ -4978,7 +4978,7 @@ syn_cmd_match(
49784978 /*
49794979 * Check for trailing command and illegal trailing arguments.
49804980 */
4981- eap -> nextcmd = check_nextcmd ( rest );
4981+ set_nextcmd ( eap , rest );
49824982 if (!ends_excmd2 (eap -> cmd , rest ) || eap -> skip )
49834983 rest = NULL ;
49844984 else if (ga_grow (& curwin -> w_s -> b_syn_patterns , 1 ) != FAIL
@@ -5218,7 +5218,7 @@ syn_cmd_region(
52185218 * Check for trailing garbage or command.
52195219 * If OK, add the item.
52205220 */
5221- eap -> nextcmd = check_nextcmd ( rest );
5221+ set_nextcmd ( eap , rest );
52225222 if (!ends_excmd (* rest ) || eap -> skip )
52235223 rest = NULL ;
52245224 else if (ga_grow (& (curwin -> w_s -> b_syn_patterns ), pat_count ) != FAIL
@@ -5896,7 +5896,7 @@ syn_cmd_sync(exarg_T *eap, int syncing UNUSED)
58965896 semsg (_ ("E404: Illegal arguments: %s" ), arg_start );
58975897 else if (!finished )
58985898 {
5899- eap -> nextcmd = check_nextcmd ( arg_start );
5899+ set_nextcmd ( eap , arg_start );
59005900 redraw_curbuf_later (SOME_VALID );
59015901 syn_stack_free_all (curwin -> w_s ); // Need to recompute all syntax.
59025902 }
0 commit comments