4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":tabclose N" that closes another tab page does not remove the tab
12 pages line. Same problem when using the mouse.
13 Solution: Adjust the tab pages line when needed in tabpage_close_other().
17 *** ../vim-7.0.096/src/ex_docmd.c Tue Aug 29 17:28:56 2006
18 --- src/ex_docmd.c Sun Sep 10 15:47:33 2006
24 - int h = tabline_height();
32 tabpage_close(eap->forceit);
35 - if (h != tabline_height())
46 - int h = tabline_height();
57 - if (h != tabline_height())
67 * Close tab page "tp", which is not the current tab page.
68 * Note that autocommands may make "tp" invalid.
69 + * Also takes care of the tab pages line disappearing when closing the
70 + * last-but-one tab page.
73 tabpage_close_other(tp, forceit)
80 + int h = tabline_height();
82 /* Limit to 1000 windows, autocommands may add a window while we close
83 * one. OK, so I'm paranoid... */
87 if (!valid_tabpage(tp) || tp->tp_firstwin == wp)
91 redraw_tabline = TRUE;
92 + if (h != tabline_height())
97 *** ../vim-7.0.096/src/version.c Sun Sep 10 13:56:06 2006
98 --- src/version.c Sun Sep 10 15:44:24 2006
102 { /* Add new patch number below this line */
108 Advice to worms: Sleep late.
110 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
111 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
112 \\\ download, build and distribute -- http://www.A-A-P.org ///
113 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///