Problem: Netbeans getLength function returns an incorrect length.
Solution: The function get_buf_size() in netbeans.c wrongly assumes
that bufp is a pointer to curbuf, use ml_get_buf() instead.
Files: src/netbeans.c
Patch on Vim version 7.2.245:
Index: netbeans.c
===================================================================
--- netbeans.c (revision 1586)
+++ netbeans.c (working copy)
@@ -3514,7 +3514,7 @@
eol_size = 1;
for (lnum = 1; lnum <= bufp->b_ml.ml_line_count; ++lnum)
{
- char_count += (long)STRLEN(ml_get(lnum)) + eol_size;
+ char_count += (long)STRLEN(ml_get_buf(bufp, lnum, FALSE))
+ eol_size;
/* Check for a CTRL-C every 100000 characters */
if (char_count > last_check)
{
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---