File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ split_message(char_u *mesg, pumitem_T **array)
836836 item -> bytelen = p - item -> start ;
837837 if (item -> cells > max_cells )
838838 max_cells = item -> cells ;
839- long_item_count += item -> cells / BALLOON_MIN_WIDTH ;
839+ long_item_count += ( item -> cells - 1 ) / BALLOON_MIN_WIDTH ;
840840 }
841841
842842 height = 2 + ga .ga_len ;
Original file line number Diff line number Diff line change @@ -707,6 +707,10 @@ func Test_balloon_split()
707707 if ! exists (' *balloon_split' )
708708 return
709709 endif
710+ call assert_equal ([
711+ \ ' tempname: 0x555555e380a0 "/home/mool/.viminfz.tmp"' ,
712+ \ ], balloon_split (
713+ \ ' tempname: 0x555555e380a0 "/home/mool/.viminfz.tmp"' ))
710714 call assert_equal ([
711715 \ ' one two three four one two three four one two thre' ,
712716 \ ' e four' ,
Original file line number Diff line number Diff line change @@ -771,6 +771,8 @@ static char *(features[]) =
771771
772772static int included_patches [] =
773773{ /* Add new patch number below this line */
774+ /**/
775+ 1346 ,
774776/**/
775777 1345 ,
776778/**/
You can’t perform that action at this time.
0 commit comments