forked from aniani/vim
updated for version 7.3.760
Problem: dv_ deletes the white space before the line. Solution: Move the cursor to the first non-white. (Christian Brabandt)
This commit is contained in:
@@ -8628,7 +8628,9 @@ nv_lineop(cap)
|
|||||||
cap->oap->motion_type = MLINE;
|
cap->oap->motion_type = MLINE;
|
||||||
if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL)
|
if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL)
|
||||||
clearopbeep(cap->oap);
|
clearopbeep(cap->oap);
|
||||||
else if ( cap->oap->op_type == OP_DELETE
|
else if ( (cap->oap->op_type == OP_DELETE /* only with linewise motions */
|
||||||
|
&& cap->oap->motion_force != 'v'
|
||||||
|
&& cap->oap->motion_force != Ctrl_V)
|
||||||
|| cap->oap->op_type == OP_LSHIFT
|
|| cap->oap->op_type == OP_LSHIFT
|
||||||
|| cap->oap->op_type == OP_RSHIFT)
|
|| cap->oap->op_type == OP_RSHIFT)
|
||||||
beginline(BL_SOL | BL_FIX);
|
beginline(BL_SOL | BL_FIX);
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
|
Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
|
||||||
|
Also test that dv_ works correctly
|
||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
@@ -16,7 +17,9 @@ r
|
|||||||
:" Test that copyindent works with expandtab set
|
:" Test that copyindent works with expandtab set
|
||||||
:set expandtab smartindent copyindent ts=8 sw=8 sts=8
|
:set expandtab smartindent copyindent ts=8 sw=8 sts=8
|
||||||
o{
|
o{
|
||||||
x:?^start?,$w! test.out
|
x:set nosol
|
||||||
|
/Second line/
|
||||||
|
fwdv_:?^start?,$w! test.out
|
||||||
:qa!
|
:qa!
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
|
||||||
@@ -27,3 +30,4 @@ test text
|
|||||||
a cde
|
a cde
|
||||||
f ghi
|
f ghi
|
||||||
test text
|
test text
|
||||||
|
Second line beginning with whitespace
|
||||||
|
@@ -7,3 +7,4 @@ test text
|
|||||||
test text
|
test text
|
||||||
{
|
{
|
||||||
x
|
x
|
||||||
|
with whitespace
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
760,
|
||||||
/**/
|
/**/
|
||||||
759,
|
759,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user