|
Karsten Hopp |
449dbc |
To: vim-dev@vim.org
|
|
Karsten Hopp |
449dbc |
Subject: Patch 7.2.253
|
|
Karsten Hopp |
449dbc |
Fcc: outbox
|
|
Karsten Hopp |
449dbc |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
449dbc |
Mime-Version: 1.0
|
|
Karsten Hopp |
449dbc |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
449dbc |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
449dbc |
------------
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
Patch 7.2.253
|
|
Karsten Hopp |
449dbc |
Problem: Netbeans interface: getLength always uses current buffer.
|
|
Karsten Hopp |
449dbc |
Solution: Use ml_get_buf() instead of ml_get(). (Xavier de Gaye)
|
|
Karsten Hopp |
449dbc |
Files: src/netbeans.c
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
*** ../vim-7.2.252/src/netbeans.c 2009-06-24 16:49:50.000000000 +0200
|
|
Karsten Hopp |
449dbc |
--- src/netbeans.c 2009-09-11 13:40:14.000000000 +0200
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 1499,1505 ****
|
|
Karsten Hopp |
449dbc |
return FAIL;
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
first = *pos;
|
|
Karsten Hopp |
449dbc |
! nbdebug((" FIRST POS: line %d, col %d\n", first.lnum, first.col));
|
|
Karsten Hopp |
449dbc |
pos = off2pos(buf->bufp, off+count-1);
|
|
Karsten Hopp |
449dbc |
if (!pos)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
--- 1499,1506 ----
|
|
Karsten Hopp |
449dbc |
return FAIL;
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
first = *pos;
|
|
Karsten Hopp |
449dbc |
! nbdebug((" FIRST POS: line %d, col %d\n",
|
|
Karsten Hopp |
449dbc |
! first.lnum, first.col));
|
|
Karsten Hopp |
449dbc |
pos = off2pos(buf->bufp, off+count-1);
|
|
Karsten Hopp |
449dbc |
if (!pos)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 1510,1516 ****
|
|
Karsten Hopp |
449dbc |
return FAIL;
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
last = *pos;
|
|
Karsten Hopp |
449dbc |
! nbdebug((" LAST POS: line %d, col %d\n", last.lnum, last.col));
|
|
Karsten Hopp |
449dbc |
del_from_lnum = first.lnum;
|
|
Karsten Hopp |
449dbc |
del_to_lnum = last.lnum;
|
|
Karsten Hopp |
449dbc |
doupdate = 1;
|
|
Karsten Hopp |
449dbc |
--- 1511,1518 ----
|
|
Karsten Hopp |
449dbc |
return FAIL;
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
last = *pos;
|
|
Karsten Hopp |
449dbc |
! nbdebug((" LAST POS: line %d, col %d\n",
|
|
Karsten Hopp |
449dbc |
! last.lnum, last.col));
|
|
Karsten Hopp |
449dbc |
del_from_lnum = first.lnum;
|
|
Karsten Hopp |
449dbc |
del_to_lnum = last.lnum;
|
|
Karsten Hopp |
449dbc |
doupdate = 1;
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 1521,1527 ****
|
|
Karsten Hopp |
449dbc |
next = off2pos(buf->bufp, off + count);
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
/* Remove part of the first line. */
|
|
Karsten Hopp |
449dbc |
! if (first.col != 0 || (next != NULL && first.lnum == next->lnum))
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
if (first.lnum != last.lnum
|
|
Karsten Hopp |
449dbc |
|| (next != NULL && first.lnum != next->lnum))
|
|
Karsten Hopp |
449dbc |
--- 1523,1530 ----
|
|
Karsten Hopp |
449dbc |
next = off2pos(buf->bufp, off + count);
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
/* Remove part of the first line. */
|
|
Karsten Hopp |
449dbc |
! if (first.col != 0
|
|
Karsten Hopp |
449dbc |
! || (next != NULL && first.lnum == next->lnum))
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
if (first.lnum != last.lnum
|
|
Karsten Hopp |
449dbc |
|| (next != NULL && first.lnum != next->lnum))
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 1584,1590 ****
|
|
Karsten Hopp |
449dbc |
int id = buf_findsign_id(buf->bufp, (linenr_T)i);
|
|
Karsten Hopp |
449dbc |
if (id > 0)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
! nbdebug((" Deleting sign %d on line %d\n", id, i));
|
|
Karsten Hopp |
449dbc |
buf_delsign(buf->bufp, id);
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
else
|
|
Karsten Hopp |
449dbc |
--- 1587,1594 ----
|
|
Karsten Hopp |
449dbc |
int id = buf_findsign_id(buf->bufp, (linenr_T)i);
|
|
Karsten Hopp |
449dbc |
if (id > 0)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
! nbdebug((" Deleting sign %d on line %d\n",
|
|
Karsten Hopp |
449dbc |
! id, i));
|
|
Karsten Hopp |
449dbc |
buf_delsign(buf->bufp, id);
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
else
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 1593,1599 ****
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
! nbdebug((" Deleting lines %d through %d\n", del_from_lnum, del_to_lnum));
|
|
Karsten Hopp |
449dbc |
curwin->w_cursor.lnum = del_from_lnum;
|
|
Karsten Hopp |
449dbc |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
449dbc |
del_lines(del_to_lnum - del_from_lnum + 1, FALSE);
|
|
Karsten Hopp |
449dbc |
--- 1597,1604 ----
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
}
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
! nbdebug((" Deleting lines %d through %d\n",
|
|
Karsten Hopp |
449dbc |
! del_from_lnum, del_to_lnum));
|
|
Karsten Hopp |
449dbc |
curwin->w_cursor.lnum = del_from_lnum;
|
|
Karsten Hopp |
449dbc |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
449dbc |
del_lines(del_to_lnum - del_from_lnum + 1, FALSE);
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 3514,3520 ****
|
|
Karsten Hopp |
449dbc |
eol_size = 1;
|
|
Karsten Hopp |
449dbc |
for (lnum = 1; lnum <= bufp->b_ml.ml_line_count; ++lnum)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
! char_count += (long)STRLEN(ml_get(lnum)) + eol_size;
|
|
Karsten Hopp |
449dbc |
/* Check for a CTRL-C every 100000 characters */
|
|
Karsten Hopp |
449dbc |
if (char_count > last_check)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
--- 3519,3526 ----
|
|
Karsten Hopp |
449dbc |
eol_size = 1;
|
|
Karsten Hopp |
449dbc |
for (lnum = 1; lnum <= bufp->b_ml.ml_line_count; ++lnum)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
! char_count += (long)STRLEN(ml_get_buf(bufp, lnum, FALSE))
|
|
Karsten Hopp |
449dbc |
! + eol_size;
|
|
Karsten Hopp |
449dbc |
/* Check for a CTRL-C every 100000 characters */
|
|
Karsten Hopp |
449dbc |
if (char_count > last_check)
|
|
Karsten Hopp |
449dbc |
{
|
|
Karsten Hopp |
449dbc |
*** ../vim-7.2.252/src/version.c 2009-09-11 14:02:25.000000000 +0200
|
|
Karsten Hopp |
449dbc |
--- src/version.c 2009-09-11 14:18:45.000000000 +0200
|
|
Karsten Hopp |
449dbc |
***************
|
|
Karsten Hopp |
449dbc |
*** 678,679 ****
|
|
Karsten Hopp |
449dbc |
--- 678,681 ----
|
|
Karsten Hopp |
449dbc |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
449dbc |
+ /**/
|
|
Karsten Hopp |
449dbc |
+ 253,
|
|
Karsten Hopp |
449dbc |
/**/
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
--
|
|
Karsten Hopp |
449dbc |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
449dbc |
227. You sleep next to your monitor. Or on top of it.
|
|
Karsten Hopp |
449dbc |
|
|
Karsten Hopp |
449dbc |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
449dbc |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
449dbc |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
449dbc |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|