Karsten Hopp e1a0c6
To: vim-dev@vim.org
Karsten Hopp e1a0c6
Subject: patch 7.0.216
Karsten Hopp e1a0c6
Fcc: outbox
Karsten Hopp e1a0c6
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e1a0c6
Mime-Version: 1.0
Karsten Hopp e1a0c6
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp e1a0c6
Content-Transfer-Encoding: 8bit
Karsten Hopp e1a0c6
------------
Karsten Hopp e1a0c6
Karsten Hopp e1a0c6
Patch 7.0.216
Karsten Hopp e1a0c6
Problem:    ":tab wincmd ]" does not open a tab page. (Tony Mechelynck)
Karsten Hopp e1a0c6
Solution:   Copy the cmdmod.tab value to postponed_split_tab and use it.
Karsten Hopp e1a0c6
Files:	    src/globals.h, src/ex_docmd.c, src/if_cscope.c, src/window.c
Karsten Hopp e1a0c6
Karsten Hopp e1a0c6
Karsten Hopp e1a0c6
*** ../vim-7.0.215/src/globals.h	Wed Feb  7 03:42:37 2007
Karsten Hopp e1a0c6
--- src/globals.h	Sun Mar 11 15:27:12 2007
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 1030,1035 ****
Karsten Hopp e1a0c6
--- 1030,1036 ----
Karsten Hopp e1a0c6
  #ifdef FEAT_WINDOWS
Karsten Hopp e1a0c6
  EXTERN int	postponed_split INIT(= 0);  /* for CTRL-W CTRL-] command */
Karsten Hopp e1a0c6
  EXTERN int	postponed_split_flags INIT(= 0);  /* args for win_split() */
Karsten Hopp e1a0c6
+ EXTERN int	postponed_split_tab INIT(= 0);  /* cmdmod.tab */
Karsten Hopp e1a0c6
  # ifdef FEAT_QUICKFIX
Karsten Hopp e1a0c6
  EXTERN int	g_do_tagpreview INIT(= 0);  /* for tag preview commands:
Karsten Hopp e1a0c6
  					       height of preview window */
Karsten Hopp e1a0c6
*** ../vim-7.0.215/src/ex_docmd.c	Thu Mar  8 18:16:54 2007
Karsten Hopp e1a0c6
--- src/ex_docmd.c	Sun Mar 11 15:29:06 2007
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 7980,7987 ****
Karsten Hopp e1a0c6
--- 7980,7989 ----
Karsten Hopp e1a0c6
      {
Karsten Hopp e1a0c6
  	/* Pass flags on for ":vertical wincmd ]". */
Karsten Hopp e1a0c6
  	postponed_split_flags = cmdmod.split;
Karsten Hopp e1a0c6
+ 	postponed_split_tab = cmdmod.tab;
Karsten Hopp e1a0c6
  	do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar);
Karsten Hopp e1a0c6
  	postponed_split_flags = 0;
Karsten Hopp e1a0c6
+ 	postponed_split_tab = 0;
Karsten Hopp e1a0c6
      }
Karsten Hopp e1a0c6
  }
Karsten Hopp e1a0c6
  #endif
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 9189,9196 ****
Karsten Hopp e1a0c6
--- 9191,9200 ----
Karsten Hopp e1a0c6
  {
Karsten Hopp e1a0c6
      postponed_split = -1;
Karsten Hopp e1a0c6
      postponed_split_flags = cmdmod.split;
Karsten Hopp e1a0c6
+     postponed_split_tab = cmdmod.tab;
Karsten Hopp e1a0c6
      ex_tag_cmd(eap, cmdnames[eap->cmdidx].cmd_name + 1);
Karsten Hopp e1a0c6
      postponed_split_flags = 0;
Karsten Hopp e1a0c6
+     postponed_split_tab = 0;
Karsten Hopp e1a0c6
  }
Karsten Hopp e1a0c6
  #endif
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
*** ../vim-7.0.215/src/if_cscope.c	Tue Feb 27 18:11:55 2007
Karsten Hopp e1a0c6
--- src/if_cscope.c	Sun Mar 11 15:29:57 2007
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 128,133 ****
Karsten Hopp e1a0c6
--- 128,134 ----
Karsten Hopp e1a0c6
  	}
Karsten Hopp e1a0c6
  	postponed_split = -1;
Karsten Hopp e1a0c6
  	postponed_split_flags = cmdmod.split;
Karsten Hopp e1a0c6
+ 	postponed_split_tab = cmdmod.tab;
Karsten Hopp e1a0c6
      }
Karsten Hopp e1a0c6
  #endif
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 135,140 ****
Karsten Hopp e1a0c6
--- 136,142 ----
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
  #ifdef FEAT_WINDOWS
Karsten Hopp e1a0c6
      postponed_split_flags = 0;
Karsten Hopp e1a0c6
+     postponed_split_tab = 0;
Karsten Hopp e1a0c6
  #endif
Karsten Hopp e1a0c6
  }
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
*** ../vim-7.0.215/src/window.c	Tue Feb 20 00:17:01 2007
Karsten Hopp e1a0c6
--- src/window.c	Sun Mar 11 15:31:57 2007
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 3290,3300 ****
Karsten Hopp e1a0c6
      int
Karsten Hopp e1a0c6
  may_open_tabpage()
Karsten Hopp e1a0c6
  {
Karsten Hopp e1a0c6
!     int		n = cmdmod.tab;
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
!     if (cmdmod.tab != 0)
Karsten Hopp e1a0c6
      {
Karsten Hopp e1a0c6
  	cmdmod.tab = 0;	    /* reset it to avoid doing it twice */
Karsten Hopp e1a0c6
  	return win_new_tabpage(n);
Karsten Hopp e1a0c6
      }
Karsten Hopp e1a0c6
      return FAIL;
Karsten Hopp e1a0c6
--- 3290,3301 ----
Karsten Hopp e1a0c6
      int
Karsten Hopp e1a0c6
  may_open_tabpage()
Karsten Hopp e1a0c6
  {
Karsten Hopp e1a0c6
!     int		n = (cmdmod.tab == 0) ? postponed_split_tab : cmdmod.tab;
Karsten Hopp e1a0c6
  
Karsten Hopp e1a0c6
!     if (n != 0)
Karsten Hopp e1a0c6
      {
Karsten Hopp e1a0c6
  	cmdmod.tab = 0;	    /* reset it to avoid doing it twice */
Karsten Hopp e1a0c6
+ 	postponed_split_tab = 0;
Karsten Hopp e1a0c6
  	return win_new_tabpage(n);
Karsten Hopp e1a0c6
      }
Karsten Hopp e1a0c6
      return FAIL;
Karsten Hopp e1a0c6
*** ../vim-7.0.215/src/version.c	Thu Mar  8 20:39:02 2007
Karsten Hopp e1a0c6
--- src/version.c	Sun Mar 11 15:50:04 2007
Karsten Hopp e1a0c6
***************
Karsten Hopp e1a0c6
*** 668,669 ****
Karsten Hopp e1a0c6
--- 668,671 ----
Karsten Hopp e1a0c6
  {   /* Add new patch number below this line */
Karsten Hopp e1a0c6
+ /**/
Karsten Hopp e1a0c6
+     216,
Karsten Hopp e1a0c6
  /**/
Karsten Hopp e1a0c6
Karsten Hopp e1a0c6
-- 
Karsten Hopp e1a0c6
You were lucky to have a LAKE! There were a hundred and sixty of
Karsten Hopp e1a0c6
us living in a small shoebox in the middle of the road.
Karsten Hopp e1a0c6
Karsten Hopp e1a0c6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e1a0c6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e1a0c6
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp e1a0c6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///