home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.097 < prev    next >
Encoding:
Internet Message Format  |  2006-09-09  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.097
  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 7.0.097
  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().
  14. Files:        src/ex_docmd.c
  15.  
  16.  
  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
  19. ***************
  20. *** 6296,6302 ****
  21.       exarg_T    *eap;
  22.   {
  23.       tabpage_T    *tp;
  24. -     int        h = tabline_height();
  25.   
  26.   # ifdef FEAT_CMDWIN
  27.       if (cmdwin_type != 0)
  28. --- 6296,6301 ----
  29. ***************
  30. *** 6328,6336 ****
  31.              )
  32.           tabpage_close(eap->forceit);
  33.       }
  34. -     if (h != tabline_height())
  35. -     shell_new_rows();
  36.   }
  37.   
  38.   /*
  39. --- 6327,6332 ----
  40. ***************
  41. *** 6342,6348 ****
  42.   {
  43.       tabpage_T    *tp;
  44.       int        done;
  45. -     int        h = tabline_height();
  46.   
  47.   # ifdef FEAT_CMDWIN
  48.       if (cmdwin_type != 0)
  49. --- 6338,6343 ----
  50. ***************
  51. *** 6371,6379 ****
  52.               break;
  53.           }
  54.       }
  55. -     if (h != tabline_height())
  56. -     shell_new_rows();
  57.   }
  58.   
  59.   /*
  60. --- 6366,6371 ----
  61. ***************
  62. *** 6397,6402 ****
  63. --- 6389,6396 ----
  64.   /*
  65.    * Close tab page "tp", which is not the current tab page.
  66.    * Note that autocommands may make "tp" invalid.
  67. +  * Also takes care of the tab pages line disappearing when closing the
  68. +  * last-but-one tab page.
  69.    */
  70.       void
  71.   tabpage_close_other(tp, forceit)
  72. ***************
  73. *** 6405,6410 ****
  74. --- 6399,6405 ----
  75.   {
  76.       int        done = 0;
  77.       win_T    *wp;
  78. +     int        h = tabline_height();
  79.   
  80.       /* Limit to 1000 windows, autocommands may add a window while we close
  81.        * one.  OK, so I'm paranoid... */
  82. ***************
  83. *** 6418,6424 ****
  84. --- 6413,6422 ----
  85.       if (!valid_tabpage(tp) || tp->tp_firstwin == wp)
  86.           break;
  87.       }
  88.       redraw_tabline = TRUE;
  89. +     if (h != tabline_height())
  90. +     shell_new_rows();
  91.   }
  92.   
  93.   /*
  94. *** ../vim-7.0.096/src/version.c    Sun Sep 10 13:56:06 2006
  95. --- src/version.c    Sun Sep 10 15:44:24 2006
  96. ***************
  97. *** 668,669 ****
  98. --- 668,671 ----
  99.   {   /* Add new patch number below this line */
  100. + /**/
  101. +     97,
  102.   /**/
  103.  
  104. -- 
  105. Advice to worms:  Sleep late.
  106.  
  107.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  108. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  109. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  110.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  111.