Karsten Hopp 92ca8c
To: vim-dev@vim.org
Karsten Hopp 92ca8c
Subject: patch 7.1.044
Karsten Hopp 92ca8c
Fcc: outbox
Karsten Hopp 92ca8c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 92ca8c
Mime-Version: 1.0
Karsten Hopp 92ca8c
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 92ca8c
Content-Transfer-Encoding: 8bit
Karsten Hopp 92ca8c
------------
Karsten Hopp 92ca8c
Karsten Hopp 92ca8c
Patch 7.1.044
Karsten Hopp 92ca8c
Problem:    In Insert mode 0 CTRL-T deletes all indent, it should add indent.
Karsten Hopp 92ca8c
	    (Gautam Iyer)
Karsten Hopp 92ca8c
Solution:   Check for CTRL-D typed.
Karsten Hopp 92ca8c
Files:	    src/edit.c
Karsten Hopp 92ca8c
Karsten Hopp 92ca8c
Karsten Hopp 92ca8c
*** ../vim-7.1.043/src/edit.c	Thu Jun 28 12:44:56 2007
Karsten Hopp 92ca8c
--- src/edit.c	Wed Jul 25 22:50:28 2007
Karsten Hopp 92ca8c
***************
Karsten Hopp 92ca8c
*** 8000,8006 ****
Karsten Hopp 92ca8c
      /*
Karsten Hopp 92ca8c
       * 0^D and ^^D: remove all indent.
Karsten Hopp 92ca8c
       */
Karsten Hopp 92ca8c
!     if ((lastc == '0' || lastc == '^') && curwin->w_cursor.col)
Karsten Hopp 92ca8c
      {
Karsten Hopp 92ca8c
  	--curwin->w_cursor.col;
Karsten Hopp 92ca8c
  	(void)del_char(FALSE);		/* delete the '^' or '0' */
Karsten Hopp 92ca8c
--- 8000,8007 ----
Karsten Hopp 92ca8c
      /*
Karsten Hopp 92ca8c
       * 0^D and ^^D: remove all indent.
Karsten Hopp 92ca8c
       */
Karsten Hopp 92ca8c
!     if (c == Ctrl_D && (lastc == '0' || lastc == '^')
Karsten Hopp 92ca8c
! 						  && curwin->w_cursor.col > 0)
Karsten Hopp 92ca8c
      {
Karsten Hopp 92ca8c
  	--curwin->w_cursor.col;
Karsten Hopp 92ca8c
  	(void)del_char(FALSE);		/* delete the '^' or '0' */
Karsten Hopp 92ca8c
*** ../vim-7.1.043/src/version.c	Sat Jul 28 14:21:04 2007
Karsten Hopp 92ca8c
--- src/version.c	Sun Jul 29 14:14:36 2007
Karsten Hopp 92ca8c
***************
Karsten Hopp 92ca8c
*** 668,669 ****
Karsten Hopp 92ca8c
--- 668,671 ----
Karsten Hopp 92ca8c
  {   /* Add new patch number below this line */
Karsten Hopp 92ca8c
+ /**/
Karsten Hopp 92ca8c
+     44,
Karsten Hopp 92ca8c
  /**/
Karsten Hopp 92ca8c
Karsten Hopp 92ca8c
-- 
Karsten Hopp 92ca8c
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 92ca8c
54. You start tilting your head sideways to smile. :-)
Karsten Hopp 92ca8c
Karsten Hopp 92ca8c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 92ca8c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 92ca8c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 92ca8c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///