File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,7 @@ ins_compl_infercase_gettext(
642642 // growarray. Add the character in the next round.
643643 if (ga_grow (& gap , IOSIZE ) == FAIL )
644644 return (char_u * )"[failed]" ;
645+ * p = NUL ;
645646 STRCPY (gap .ga_data , IObuff );
646647 gap .ga_len = (int )STRLEN (IObuff );
647648 }
Original file line number Diff line number Diff line change @@ -2108,6 +2108,13 @@ func Test_infercase_very_long_line()
21082108 exe " normal 2Go\<C-X>\<C-L>\<Esc> "
21092109 call assert_equal (longLine, getline (3 ))
21102110
2111+ " check that the too long text is NUL terminated
2112+ % del
2113+ norm o
2114+ norm 1987 ax
2115+ exec " norm ox\<C-X>\<C-L> "
2116+ call assert_equal (repeat (' x' , 1987 ), getline (3 ))
2117+
21112118 bwipe!
21122119 set noic noinfercase
21132120endfunc
Original file line number Diff line number Diff line change @@ -735,6 +735,8 @@ static char *(features[]) =
735735
736736static int included_patches [] =
737737{ /* Add new patch number below this line */
738+ /**/
739+ 60 ,
738740/**/
739741 59 ,
740742/**/
You can’t perform that action at this time.
0 commit comments