Markus Braun wrote:

> > Because there are several entries in "ga.ga_data" that have a "bytelen"
> > of 0 the for loop in line 1212 is never executed and thus the variable
> > "line" is never incremented. Thus the "item_idx" is incremented above
> > the value of "ga.ga_len" which causes accessing an invalid entry.
> 
> After thinking about this a second time I think the problem is that the
> empty line in the input message is skipped because "bytelen" is 0.
> So either the height should be calculated for the message excluding the
> embedded empty line or an empty line should be inserted into the
> formatted message.

What is the value of "mesg"?  That's the only input, thus if we know
that we should be able to reproduce.

-- 
>From "know your smileys":
 :.-(   Crying

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201911202159.xAKLxWEP002716%40masaka.moolenaar.net.

Raspunde prin e-mail lui