File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -532,7 +532,8 @@ qf_init_ext(
532532 else if (tv -> v_type == VAR_LIST )
533533 {
534534 /* Get the next line from the supplied list */
535- while (p_li && p_li -> li_tv .v_type != VAR_STRING )
535+ while (p_li && (p_li -> li_tv .v_type != VAR_STRING
536+ || p_li -> li_tv .vval .v_string == NULL ))
536537 p_li = p_li -> li_next ; /* Skip non-string items */
537538
538539 if (!p_li ) /* End of the list */
Original file line number Diff line number Diff line change @@ -692,3 +692,8 @@ func Test_caddbuffer_to_empty()
692692 endtry
693693 quit !
694694endfunc
695+
696+ func Test_cgetexpr_works ()
697+ " this must not crash Vim
698+ cgetexpr [$x ]
699+ endfunc
Original file line number Diff line number Diff line change @@ -748,6 +748,8 @@ static char *(features[]) =
748748
749749static int included_patches [] =
750750{ /* Add new patch number below this line */
751+ /**/
752+ 1664 ,
751753/**/
752754 1663 ,
753755/**/
You can’t perform that action at this time.
0 commit comments