File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7568,7 +7568,10 @@ set_var(
75687568 return ;
75697569 }
75707570 else if (v -> di_tv .v_type != tv -> v_type )
7571+ {
75717572 EMSG2 (_ ("E963: setting %s to value with wrong type" ), name );
7573+ return ;
7574+ }
75727575 }
75737576
75747577 clear_tv (& v -> di_tv );
Original file line number Diff line number Diff line change @@ -53,3 +53,13 @@ func Test_line_continuation()
5353 " \ and some more
5454 call assert_equal ([5 , 6 ], array)
5555endfunc
56+
57+ func Test_E963 ()
58+ " These commands used to cause an internal error prior to vim 8.1.0563
59+ let v_e = v: errors
60+ let v_o = v: oldfiles
61+ call assert_fails (" let v:errors=''" , ' E963:' )
62+ call assert_equal (v_e, v: errors )
63+ call assert_fails (" let v:oldfiles=''" , ' E963:' )
64+ call assert_equal (v_o, v: oldfiles )
65+ endfunc
Original file line number Diff line number Diff line change @@ -792,6 +792,8 @@ static char *(features[]) =
792792
793793static int included_patches [] =
794794{ /* Add new patch number below this line */
795+ /**/
796+ 564 ,
795797/**/
796798 563 ,
797799/**/
You can’t perform that action at this time.
0 commit comments