Bug#507116: Vim fails to parse tags lines longer than 512 bytes
jamessan at debian.org
Sat Dec 6 23:30:24 UTC 2008
On Sat, Dec 06, 2008 at 02:21:48PM +0100, Bram Moolenaar wrote:
> > If a tags file has a line that's longer than 512 bytes (as is the case
> > with the attached file), Vim won't be able to parse the tags file
> > resulting in any :ts (or related) commands failing with E431. As an
> > example, try ":ts cli_parse_add" with the attached tags file.
> There is a hard limit for tags file lines at 512 bytes.
I notice that the buffer for tags is already being dynamically
allocated. Is there a reason why the buffer isn't reallocated if the
tag doesn't fit in 512 bytes?
> I think we can safely ignore long lines. Some tags may not be found,
> but that's better than not finding anything.
> Try the patch below.
This works well.
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20081206/85df582f/attachment.pgp
More information about the pkg-vim-maintainers