Karsten Hopp c106bd
To: vim_dev@googlegroups.com
Karsten Hopp c106bd
Subject: Patch 7.3.760
Karsten Hopp c106bd
Fcc: outbox
Karsten Hopp c106bd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c106bd
Mime-Version: 1.0
Karsten Hopp c106bd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c106bd
Content-Transfer-Encoding: 8bit
Karsten Hopp c106bd
------------
Karsten Hopp c106bd
Karsten Hopp c106bd
Patch 7.3.760
Karsten Hopp c106bd
Problem:    dv_ deletes the white space before the line.
Karsten Hopp c106bd
Solution:   Move the cursor to the first non-white. (Christian Brabandt)
Karsten Hopp c106bd
Files:	    src/normal.c, src/testdir/test19.in, src/testdir/test19.ok
Karsten Hopp c106bd
Karsten Hopp c106bd
Karsten Hopp c106bd
*** ../vim-7.3.759/src/normal.c	2012-10-23 05:08:49.000000000 +0200
Karsten Hopp c106bd
--- src/normal.c	2012-12-12 17:23:00.000000000 +0100
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 8628,8634 ****
Karsten Hopp c106bd
      cap->oap->motion_type = MLINE;
Karsten Hopp c106bd
      if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL)
Karsten Hopp c106bd
  	clearopbeep(cap->oap);
Karsten Hopp c106bd
!     else if (  cap->oap->op_type == OP_DELETE
Karsten Hopp c106bd
  	    || cap->oap->op_type == OP_LSHIFT
Karsten Hopp c106bd
  	    || cap->oap->op_type == OP_RSHIFT)
Karsten Hopp c106bd
  	beginline(BL_SOL | BL_FIX);
Karsten Hopp c106bd
--- 8628,8636 ----
Karsten Hopp c106bd
      cap->oap->motion_type = MLINE;
Karsten Hopp c106bd
      if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL)
Karsten Hopp c106bd
  	clearopbeep(cap->oap);
Karsten Hopp c106bd
!     else if (  (cap->oap->op_type == OP_DELETE /* only with linewise motions */
Karsten Hopp c106bd
! 		&& cap->oap->motion_force != 'v'
Karsten Hopp c106bd
! 		&& cap->oap->motion_force != Ctrl_V)
Karsten Hopp c106bd
  	    || cap->oap->op_type == OP_LSHIFT
Karsten Hopp c106bd
  	    || cap->oap->op_type == OP_RSHIFT)
Karsten Hopp c106bd
  	beginline(BL_SOL | BL_FIX);
Karsten Hopp c106bd
*** ../vim-7.3.759/src/testdir/test19.in	2011-09-08 23:22:35.000000000 +0200
Karsten Hopp c106bd
--- src/testdir/test19.in	2012-12-12 17:19:36.000000000 +0100
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 1,4 ****
Karsten Hopp c106bd
--- 1,5 ----
Karsten Hopp c106bd
  Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
Karsten Hopp c106bd
+ Also test that dv_ works correctly
Karsten Hopp c106bd
  
Karsten Hopp c106bd
  STARTTEST
Karsten Hopp c106bd
  :so small.vim
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 16,22 ****
Karsten Hopp c106bd
  :" Test that copyindent works with expandtab set
Karsten Hopp c106bd
  :set expandtab smartindent copyindent ts=8 sw=8 sts=8
Karsten Hopp c106bd
  o{
Karsten Hopp c106bd
! x?:?^start?,$w! test.out
Karsten Hopp c106bd
  :qa!
Karsten Hopp c106bd
  ENDTEST
Karsten Hopp c106bd
  
Karsten Hopp c106bd
--- 17,25 ----
Karsten Hopp c106bd
  :" Test that copyindent works with expandtab set
Karsten Hopp c106bd
  :set expandtab smartindent copyindent ts=8 sw=8 sts=8
Karsten Hopp c106bd
  o{
Karsten Hopp c106bd
! x?:set nosol
Karsten Hopp c106bd
! /Second line/
Karsten Hopp c106bd
! fwdv_:?^start?,$w! test.out
Karsten Hopp c106bd
  :qa!
Karsten Hopp c106bd
  ENDTEST
Karsten Hopp c106bd
  
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 27,29 ****
Karsten Hopp c106bd
--- 30,33 ----
Karsten Hopp c106bd
      a cde
Karsten Hopp c106bd
      f ghi
Karsten Hopp c106bd
  test text
Karsten Hopp c106bd
+   Second line beginning with whitespace
Karsten Hopp c106bd
*** ../vim-7.3.759/src/testdir/test19.ok	2011-09-07 19:58:04.000000000 +0200
Karsten Hopp c106bd
--- src/testdir/test19.ok	2012-12-12 17:19:36.000000000 +0100
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 7,9 ****
Karsten Hopp c106bd
--- 7,10 ----
Karsten Hopp c106bd
  test text
Karsten Hopp c106bd
  {
Karsten Hopp c106bd
          x
Karsten Hopp c106bd
+   with whitespace
Karsten Hopp c106bd
*** ../vim-7.3.759/src/version.c	2012-12-12 17:12:21.000000000 +0100
Karsten Hopp c106bd
--- src/version.c	2012-12-12 17:20:47.000000000 +0100
Karsten Hopp c106bd
***************
Karsten Hopp c106bd
*** 727,728 ****
Karsten Hopp c106bd
--- 727,730 ----
Karsten Hopp c106bd
  {   /* Add new patch number below this line */
Karsten Hopp c106bd
+ /**/
Karsten Hopp c106bd
+     760,
Karsten Hopp c106bd
  /**/
Karsten Hopp c106bd
Karsten Hopp c106bd
-- 
Karsten Hopp c106bd
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c106bd
149. You find your computer sexier than your girlfriend
Karsten Hopp c106bd
Karsten Hopp c106bd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c106bd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c106bd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c106bd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///