File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -3219,16 +3219,17 @@ set_var_const(
32193219		goto failed ;
32203220	    }
32213221
3222+ 	    if  (is_script_local  &&  vim9script 
3223+ 			      &&  (flags  &  (ASSIGN_NO_DECL  | ASSIGN_DECL )) ==  0 )
3224+ 	    {
3225+ 		semsg (_ (e_redefining_script_item_str ), name );
3226+ 		goto failed ;
3227+ 	    }
3228+ 
32223229	    if  (var_in_vim9script )
32233230	    {
32243231		where_T  where ;
32253232
3226- 		if  ((flags  &  (ASSIGN_NO_DECL  | ASSIGN_DECL )) ==  0 )
3227- 		{
3228- 		    semsg (_ (e_redefining_script_item_str ), name );
3229- 		    goto failed ;
3230- 		}
3231- 
32323233		// check the type and adjust to bool if needed 
32333234		where .wt_index  =  var_idx ;
32343235		where .wt_variable  =  TRUE;
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static  int  included_patches [] = 
752752{   /* Add new patch number below this line */ 
753+ /**/ 
754+     2681 ,
753755/**/ 
754756    2680 ,
755757/**/ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments