]> git.pld-linux.org Git - packages/vim.git/blob - 6.3.039
- added __autoheader
[packages/vim.git] / 6.3.039
1 To: vim-dev@vim.org
2 Subject: Patch 6.3.039
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.3.039
11 Problem:    When 'number' is set and inserting lines just above the first
12             displayed line (in another window on the same buffer), the line
13             numbers are not updated.  (Hitier Sylvain)
14 Solution:   When 'number' is set and lines are inserted/deleted redraw all
15             lines below the change.
16 Files:      src/screen.c
17
18
19 *** ../vim-6.3.038/src/screen.c Thu Oct  7 20:07:59 2004
20 --- src/screen.c        Sun Dec  5 14:52:15 2004
21 ***************
22 *** 927,933 ****
23         /* When a change starts above w_topline and the end is below
24          * w_topline, start redrawing at w_topline.
25          * If the end of the change is above w_topline: do like no changes was
26 !        * maded, but redraw the first line to find changes in syntax. */
27         if (mod_top != 0 && mod_top < wp->w_topline)
28         {
29             if (mod_bot > wp->w_topline)
30 --- 927,933 ----
31         /* When a change starts above w_topline and the end is below
32          * w_topline, start redrawing at w_topline.
33          * If the end of the change is above w_topline: do like no change was
34 !        * made, but redraw the first line to find changes in syntax. */
35         if (mod_top != 0 && mod_top < wp->w_topline)
36         {
37             if (mod_bot > wp->w_topline)
38 ***************
39 *** 937,942 ****
40 --- 937,947 ----
41                 top_end = 1;
42   #endif
43         }
44
45 +       /* When line numbers are displayed need to redraw all lines below
46 +        * inserted/deleted lines. */
47 +       if (mod_top != 0 && buf->b_mod_xlines != 0 && wp->w_p_nu)
48 +           mod_bot = MAXLNUM;
49       }
50   
51       /*
52 ***************
53 *** 1607,1618 ****
54                         }
55                     }
56                 }
57
58 -               /* When inserting or deleting lines and 'number' is set:
59 -                * Redraw all lines below the change to update the line
60 -                * numbers. */
61 -               if (buf->b_mod_xlines != 0 && wp->w_p_nu)
62 -                   bot_start = 0;
63             }
64   
65   #ifdef FEAT_FOLDING
66 --- 1612,1617 ----
67 *** ../vim-6.3.038/src/version.c        Sat Dec  4 17:23:22 2004
68 --- src/version.c       Sun Dec  5 14:54:46 2004
69 ***************
70 *** 643,644 ****
71 --- 643,646 ----
72   {   /* Add new patch number below this line */
73 + /**/
74 +     39,
75   /**/
76
77 -- 
78 Our job was to build a computer information system for the branch banks.  We
79 were the perfect people for the job: Dean had seen a computer once, and I had
80 heard Dean talk about it.
81                                 (Scott Adams - The Dilbert principle)
82
83  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
84 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
86  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
This page took 0.032313 seconds and 3 git commands to generate.