diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-11-19 17:35:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-11-19 17:35:39 +0100 |
commit | 06e7ce1a013535b11d5454630cc1770ef21ea461 (patch) | |
tree | 5a3446529d0cb1442c775b9132eae36c8d425016 /src/ops.c | |
parent | 57bc4633b24be82697d969c865bb018cfa47099f (diff) | |
download | vim-git-06e7ce1a013535b11d5454630cc1770ef21ea461.tar.gz |
updated for version 7.4.521v7.4.521
Problem: When using "vep" a mark is moved to the next line. (Maxi Padulo,
Issue 283)
Solution: Decrement the line number. (Christian Brabandt)
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3831,6 +3831,9 @@ do_put(regname, dir, count, flags) lnum++; } while (VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum); + if (VIsual_active) /* reset lnum to the last visual line */ + lnum--; + curbuf->b_op_end = curwin->w_cursor; /* For "CTRL-O p" in Insert mode, put cursor after last char */ if (totlen && (restart_edit != 0 || (flags & PUT_CURSEND))) |