0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.396

Problem:    After forcing an operator to be characterwise it can still become
            linewise when spanning whole lines.
Solution:   Don't make the operator linewise when motion_force was set.
            (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-01-10 13:46:22 +01:00
parent 66accae339
commit 64a72303f8
2 changed files with 3 additions and 0 deletions

View File

@@ -1648,6 +1648,7 @@ op_delete(oap)
&& !oap->block_mode && !oap->block_mode
#endif #endif
&& oap->line_count > 1 && oap->line_count > 1
&& oap->motion_force == NUL
&& oap->op_type == OP_DELETE) && oap->op_type == OP_DELETE)
{ {
ptr = ml_get(oap->end.lnum) + oap->end.col; ptr = ml_get(oap->end.lnum) + oap->end.col;

View File

@@ -714,6 +714,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 */
/**/
396,
/**/ /**/
395, 395,
/**/ /**/