Mercurial > vim
comparison src/ops.c @ 5500:8451f643a13e v7.4.099
updated for version 7.4.099
Problem: Append in blockwise Visual mode with "$" is wrong.
Solution: After "$" don't use the code that checks if the cursor was moved.
(Hirohito Higashi, Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 21 Nov 2013 14:40:04 +0100 |
parents | 93c8296281dd |
children | 1098b7b6e147 |
comparison
equal
deleted
inserted
replaced
5499:3604656fdb0a | 5500:8451f643a13e |
---|---|
2641 { | 2641 { |
2642 struct block_def bd2; | 2642 struct block_def bd2; |
2643 | 2643 |
2644 /* The user may have moved the cursor before inserting something, try | 2644 /* The user may have moved the cursor before inserting something, try |
2645 * to adjust the block for that. */ | 2645 * to adjust the block for that. */ |
2646 if (oap->start.lnum == curbuf->b_op_start.lnum) | 2646 if (oap->start.lnum == curbuf->b_op_start.lnum && !bd.is_MAX) |
2647 { | 2647 { |
2648 if (oap->op_type == OP_INSERT | 2648 if (oap->op_type == OP_INSERT |
2649 && oap->start.col != curbuf->b_op_start.col) | 2649 && oap->start.col != curbuf->b_op_start.col) |
2650 { | 2650 { |
2651 oap->start.col = curbuf->b_op_start.col; | 2651 oap->start.col = curbuf->b_op_start.col; |