diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-04 01:41:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-04 01:41:17 +0100 |
commit | d9820538bd6c83c51d24e3481cadf79ccaa9549e (patch) | |
tree | b8727b6a93911ccc2cdf9a6a23ba107e6c9ce279 /src/normal.c | |
parent | ba2d7ffc4bd69175ddeffb77a7b459787baa0d92 (diff) | |
download | vim-git-d9820538bd6c83c51d24e3481cadf79ccaa9549e.tar.gz |
updated for version 7.4.064v7.4.064
Problem: When replacing a character in Visual block mode, entering a CR
does not cause a repeated line break.
Solution: Recognize the situation and repeat the line break. (Christian
Brabandt)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index 87e979d1d..9349be2bb 100644 --- a/src/normal.c +++ b/src/normal.c @@ -7036,6 +7036,13 @@ nv_replace(cap) { if (got_int) reset_VIsual(); + if (had_ctrl_v) + { + if (cap->nchar == '\r') + cap->nchar = -1; + else if (cap->nchar == '\n') + cap->nchar = -2; + } nv_operator(cap); return; } |