1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: ml_get error when using ":g" with folded lines.
12 Solution: Adjust the line number for changed_lines(). (Christian Brabandt)
16 *** ../vim-7.3.361/src/ex_cmds.c 2011-10-20 18:17:38.000000000 +0200
17 --- src/ex_cmds.c 2011-11-30 16:58:34.000000000 +0100
20 curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
23 ! changed_lines(line1, 0, dest + num_lines + 1, 0L);
25 changed_lines(dest + 1, 0, line1 + num_lines, 0L);
28 curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
32 ! dest += num_lines + 1;
33 ! last_line = curbuf->b_ml.ml_line_count;
34 ! if (dest > last_line + 1)
35 ! dest = last_line + 1;
36 ! changed_lines(line1, 0, dest, 0L);
39 changed_lines(dest + 1, 0, line1 + num_lines, 0L);
41 *** ../vim-7.3.361/src/version.c 2011-11-30 15:40:51.000000000 +0100
42 --- src/version.c 2011-11-30 17:01:07.000000000 +0100
46 { /* Add new patch number below this line */
52 hundred-and-one symptoms of being an internet addict:
53 218. Your spouse hands you a gift wrapped magnet with your PC's name
54 on it and you accuse him or her of genocide.
56 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
57 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
58 \\\ an exciting new programming language -- http://www.Zimbu.org ///
59 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///