4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using ":vert ball" the computation of the mouse pointer
12 position may be off by one column. (Stefan Karlsson)
13 Solution: Recompute the frame width when moving the vertical separator from
14 one window to another.
18 *** ../vim-7.0.195/src/window.c Tue Nov 21 20:57:21 2006
19 --- src/window.c Tue Feb 20 00:16:35 2007
22 win1->w_prev->w_status_height = win1->w_status_height;
23 win1->w_status_height = height;
25 ! win1->w_prev->w_vsep_width = 0;
26 ! win1->w_vsep_width = 1;
29 else if (win2 == lastwin)
31 win1->w_prev->w_status_height = win1->w_status_height;
32 win1->w_status_height = height;
34 ! if (win1->w_prev->w_vsep_width == 1)
36 ! /* Remove the vertical separator from the last-but-one window,
37 ! * add it to the last window. Adjust the frame widths. */
38 ! win1->w_prev->w_vsep_width = 0;
39 ! win1->w_prev->w_frame->fr_width -= 1;
40 ! win1->w_vsep_width = 1;
41 ! win1->w_frame->fr_width += 1;
45 else if (win2 == lastwin)
48 win1->w_status_height = win2->w_status_height;
49 win2->w_status_height = height;
51 ! win2->w_vsep_width = 1;
52 ! win1->w_vsep_width = 0;
55 win_remove(win1, NULL);
57 win1->w_status_height = win2->w_status_height;
58 win2->w_status_height = height;
60 ! if (win1->w_vsep_width == 1)
62 ! /* Remove the vertical separator from win1, add it to the last
63 ! * window, win2. Adjust the frame widths. */
64 ! win2->w_vsep_width = 1;
65 ! win2->w_frame->fr_width += 1;
66 ! win1->w_vsep_width = 0;
67 ! win1->w_frame->fr_width -= 1;
71 win_remove(win1, NULL);
72 *** ../vim-7.0.195/src/version.c Tue Feb 13 06:21:24 2007
73 --- src/version.c Tue Feb 20 00:14:00 2007
77 { /* Add new patch number below this line */
83 hundred-and-one symptoms of being an internet addict:
84 150. You find yourself counting emoticons to get to sleep.
86 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
87 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
88 \\\ download, build and distribute -- http://www.A-A-P.org ///
89 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///