From 83dadafdd7967ba2d57b343e24119d6ff17b190c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Dec 2012 17:33:32 +0100 Subject: 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) --- src/normal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/normal.c') diff --git a/src/normal.c b/src/normal.c index d6773697a..869ada37a 100644 --- a/src/normal.c +++ b/src/normal.c @@ -8628,7 +8628,9 @@ nv_lineop(cap) cap->oap->motion_type = MLINE; if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL) 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_RSHIFT) beginline(BL_SOL | BL_FIX); -- cgit v1.2.1