Mercurial > vim
comparison src/ops.c @ 6535:f9d02ce2f745 v7.4.594
updated for version 7.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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 27 Jan 2015 13:22:20 +0100 |
parents | e1874a4524f8 |
children | c1ed973fb58f |
comparison
equal
deleted
inserted
replaced
6534:47b3f1674787 | 6535:f9d02ce2f745 |
---|---|
5306 prev_pend = pend; | 5306 prev_pend = pend; |
5307 while (bdp->end_vcol <= oap->end_vcol && *pend != NUL) | 5307 while (bdp->end_vcol <= oap->end_vcol && *pend != NUL) |
5308 { | 5308 { |
5309 /* Count a tab for what it's worth (if list mode not on) */ | 5309 /* Count a tab for what it's worth (if list mode not on) */ |
5310 prev_pend = pend; | 5310 prev_pend = pend; |
5311 /* TODO: is passing prev_pend for start of the line OK? | 5311 incr = lbr_chartabsize_adv(line, &pend, (colnr_T)bdp->end_vcol); |
5312 * perhaps it should be "line". */ | |
5313 incr = lbr_chartabsize_adv(prev_pend, &pend, | |
5314 (colnr_T)bdp->end_vcol); | |
5315 bdp->end_vcol += incr; | 5312 bdp->end_vcol += incr; |
5316 } | 5313 } |
5317 if (bdp->end_vcol <= oap->end_vcol | 5314 if (bdp->end_vcol <= oap->end_vcol |
5318 && (!is_del | 5315 && (!is_del |
5319 || oap->op_type == OP_APPEND | 5316 || oap->op_type == OP_APPEND |