3b6a998
To: vim-dev@vim.org
3b6a998
Subject: Patch 7.0.139
3b6a998
Fcc: outbox
3b6a998
From: Bram Moolenaar <Bram@moolenaar.net>
3b6a998
Mime-Version: 1.0
3b6a998
Content-Type: text/plain; charset=ISO-8859-1
3b6a998
Content-Transfer-Encoding: 8bit
3b6a998
------------
3b6a998
3b6a998
Patch 7.0.139
3b6a998
Problem:    Using CTRL-PageUp or CTRL-PageDown in Insert mode to go to another
3b6a998
	    tab page does not prepare for undo properly. (Stefano Zacchiroli)
3b6a998
Solution:   Call start_arrow() before switching tab page.
3b6a998
Files:	    src/edit.c
3b6a998
3b6a998
3b6a998
*** ../vim-7.0.138/src/edit.c	Sat Oct 14 14:33:21 2006
3b6a998
--- src/edit.c	Mon Oct 16 21:28:05 2006
3b6a998
***************
3b6a998
*** 8822,8828 ****
3b6a998
      if (mod_mask & MOD_MASK_CTRL)
3b6a998
      {
3b6a998
  	/* <C-PageUp>: tab page back */
3b6a998
! 	goto_tabpage(-1);
3b6a998
  	return;
3b6a998
      }
3b6a998
  #endif
3b6a998
--- 8822,8832 ----
3b6a998
      if (mod_mask & MOD_MASK_CTRL)
3b6a998
      {
3b6a998
  	/* <C-PageUp>: tab page back */
3b6a998
! 	if (first_tabpage->tp_next != NULL)
3b6a998
! 	{
3b6a998
! 	    start_arrow(&curwin->w_cursor);
3b6a998
! 	    goto_tabpage(-1);
3b6a998
! 	}
3b6a998
  	return;
3b6a998
      }
3b6a998
  #endif
3b6a998
***************
3b6a998
*** 8881,8887 ****
3b6a998
      if (mod_mask & MOD_MASK_CTRL)
3b6a998
      {
3b6a998
  	/* <C-PageDown>: tab page forward */
3b6a998
! 	goto_tabpage(0);
3b6a998
  	return;
3b6a998
      }
3b6a998
  #endif
3b6a998
--- 8885,8895 ----
3b6a998
      if (mod_mask & MOD_MASK_CTRL)
3b6a998
      {
3b6a998
  	/* <C-PageDown>: tab page forward */
3b6a998
! 	if (first_tabpage->tp_next != NULL)
3b6a998
! 	{
3b6a998
! 	    start_arrow(&curwin->w_cursor);
3b6a998
! 	    goto_tabpage(0);
3b6a998
! 	}
3b6a998
  	return;
3b6a998
      }
3b6a998
  #endif
3b6a998
*** ../vim-7.0.138/src/version.c	Tue Oct 17 12:53:31 2006
3b6a998
--- src/version.c	Tue Oct 17 13:38:27 2006
3b6a998
***************
3b6a998
*** 668,669 ****
3b6a998
--- 668,671 ----
3b6a998
  {   /* Add new patch number below this line */
3b6a998
+ /**/
3b6a998
+     139,
3b6a998
  /**/
3b6a998
3b6a998
-- 
3b6a998
hundred-and-one symptoms of being an internet addict:
3b6a998
53. To find out what time it is, you send yourself an e-mail and check the
3b6a998
    "Date:" field.
3b6a998
3b6a998
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3b6a998
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3b6a998
\\\        download, build and distribute -- http://www.A-A-P.org        ///
3b6a998
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///