4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Netbeans interface: getLength always uses current buffer.
12 Solution: Use ml_get_buf() instead of ml_get(). (Xavier de Gaye)
16 *** ../vim-7.2.252/src/netbeans.c 2009-06-24 16:49:50.000000000 +0200
17 --- src/netbeans.c 2009-09-11 13:40:14.000000000 +0200
23 ! nbdebug((" FIRST POS: line %d, col %d\n", first.lnum, first.col));
24 pos = off2pos(buf->bufp, off+count-1);
31 ! nbdebug((" FIRST POS: line %d, col %d\n",
32 ! first.lnum, first.col));
33 pos = off2pos(buf->bufp, off+count-1);
41 ! nbdebug((" LAST POS: line %d, col %d\n", last.lnum, last.col));
42 del_from_lnum = first.lnum;
43 del_to_lnum = last.lnum;
49 ! nbdebug((" LAST POS: line %d, col %d\n",
50 ! last.lnum, last.col));
51 del_from_lnum = first.lnum;
52 del_to_lnum = last.lnum;
56 next = off2pos(buf->bufp, off + count);
58 /* Remove part of the first line. */
59 ! if (first.col != 0 || (next != NULL && first.lnum == next->lnum))
61 if (first.lnum != last.lnum
62 || (next != NULL && first.lnum != next->lnum))
64 next = off2pos(buf->bufp, off + count);
66 /* Remove part of the first line. */
68 ! || (next != NULL && first.lnum == next->lnum))
70 if (first.lnum != last.lnum
71 || (next != NULL && first.lnum != next->lnum))
74 int id = buf_findsign_id(buf->bufp, (linenr_T)i);
77 ! nbdebug((" Deleting sign %d on line %d\n", id, i));
78 buf_delsign(buf->bufp, id);
82 int id = buf_findsign_id(buf->bufp, (linenr_T)i);
85 ! nbdebug((" Deleting sign %d on line %d\n",
87 buf_delsign(buf->bufp, id);
95 ! nbdebug((" Deleting lines %d through %d\n", del_from_lnum, del_to_lnum));
96 curwin->w_cursor.lnum = del_from_lnum;
97 curwin->w_cursor.col = 0;
98 del_lines(del_to_lnum - del_from_lnum + 1, FALSE);
103 ! nbdebug((" Deleting lines %d through %d\n",
104 ! del_from_lnum, del_to_lnum));
105 curwin->w_cursor.lnum = del_from_lnum;
106 curwin->w_cursor.col = 0;
107 del_lines(del_to_lnum - del_from_lnum + 1, FALSE);
111 for (lnum = 1; lnum <= bufp->b_ml.ml_line_count; ++lnum)
113 ! char_count += (long)STRLEN(ml_get(lnum)) + eol_size;
114 /* Check for a CTRL-C every 100000 characters */
115 if (char_count > last_check)
119 for (lnum = 1; lnum <= bufp->b_ml.ml_line_count; ++lnum)
121 ! char_count += (long)STRLEN(ml_get_buf(bufp, lnum, FALSE))
123 /* Check for a CTRL-C every 100000 characters */
124 if (char_count > last_check)
126 *** ../vim-7.2.252/src/version.c 2009-09-11 14:02:25.000000000 +0200
127 --- src/version.c 2009-09-11 14:18:45.000000000 +0200
131 { /* Add new patch number below this line */
137 hundred-and-one symptoms of being an internet addict:
138 227. You sleep next to your monitor. Or on top of it.
140 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
141 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
142 \\\ download, build and distribute -- http://www.A-A-P.org ///
143 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///