]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.362
- new
[packages/vim.git] / 7.3.362
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.362
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.362
11 Problem:    ml_get error when using ":g" with folded lines.
12 Solution:   Adjust the line number for changed_lines(). (Christian Brabandt)
13 Files:      src/ex_cmds.c
14
15
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
18 ***************
19 *** 820,826 ****
20         curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
21   
22       if (line1 < dest)
23 !       changed_lines(line1, 0, dest + num_lines + 1, 0L);
24       else
25         changed_lines(dest + 1, 0, line1 + num_lines, 0L);
26   
27 --- 820,832 ----
28         curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
29   
30       if (line1 < dest)
31 !     {
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);
37 !     }
38       else
39         changed_lines(dest + 1, 0, line1 + num_lines, 0L);
40   
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
43 ***************
44 *** 716,717 ****
45 --- 716,719 ----
46   {   /* Add new patch number below this line */
47 + /**/
48 +     362,
49   /**/
50
51 -- 
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.
55
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    ///
This page took 0.036623 seconds and 3 git commands to generate.