4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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.
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
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)
29 if (mod_bot > wp->w_topline)
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)
37 if (mod_bot > wp->w_topline)
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)
58 - /* When inserting or deleting lines and 'number' is set:
59 - * Redraw all lines below the change to update the line
61 - if (buf->b_mod_xlines != 0 && wp->w_p_nu)
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
72 { /* Add new patch number below this line */
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)
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 ///