summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-01-27 13:22:20 +0100
committerBram Moolenaar <Bram@vim.org>2015-01-27 13:22:20 +0100
commit1dc92334eb5e235af338f3b27277157839fa8dcc (patch)
treea98267d3283a18983296273dc5ecc278978f04a5 /src/ops.c
parente0ad365498399c1bd34dd6361b3f7dc38e84e4ca (diff)
downloadvim-git-1dc92334eb5e235af338f3b27277157839fa8dcc.tar.gz
updated for version 7.4.594v7.4.594
Problem: Using a block delete while 'breakindent' is set does not work properly. Solution: Use "line" instead of "prev_pend" as the first argument to lbr_chartabsize_adv(). (Hirohito Higashi)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ops.c b/src/ops.c
index f0d372d89..6df1121a5 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -5308,10 +5308,7 @@ block_prep(oap, bdp, lnum, is_del)
{
/* Count a tab for what it's worth (if list mode not on) */
prev_pend = pend;
- /* TODO: is passing prev_pend for start of the line OK?
- * perhaps it should be "line". */
- incr = lbr_chartabsize_adv(prev_pend, &pend,
- (colnr_T)bdp->end_vcol);
+ incr = lbr_chartabsize_adv(line, &pend, (colnr_T)bdp->end_vcol);
bdp->end_vcol += incr;
}
if (bdp->end_vcol <= oap->end_vcol