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