]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.310
- updated to 6.2.430
[packages/vim.git] / 6.2.310
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.310
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.2.310
11 Problem:    When setting 'undolevels' to -1, making a change and setting
12             'undolevels' to a positive value an "undo list corrupt" error
13             occurs. (Madoka Machitani)
14 Solution:   Sync undo before changing 'undolevels'.
15 Files:      src/option.c
16
17
18 *** ../vim-6.2.309/src/option.c Sun Feb 29 21:06:13 2004
19 --- src/option.c        Tue Mar  2 13:05:48 2004
20 ***************
21 *** 6699,6704 ****
22 --- 6699,6713 ----
23         }
24         if (p_uc && !old_value)
25             ml_open_files();
26 +     }
27
28 +     /* sync undo before 'undolevels' changes */
29 +     else if (pp == &p_ul)
30 +     {
31 +       /* use the old value, otherwise u_sync() may not work properly */
32 +       p_ul = old_value;
33 +       u_sync();
34 +       p_ul = value;
35       }
36   
37       /*
38 *** ../vim-6.2.309/src/version.c        Tue Mar  2 14:59:39 2004
39 --- src/version.c       Tue Mar  2 15:09:43 2004
40 ***************
41 *** 639,640 ****
42 --- 639,642 ----
43   {   /* Add new patch number below this line */
44 + /**/
45 +     310,
46   /**/
47
48 -- 
49 FATHER:    You killed eight wedding guests in all!
50 LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady.
51 FATHER:    I can understand that.
52                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
53
54  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
55 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
57  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.032971 seconds and 3 git commands to generate.