1
0
forked from aniani/vim

updated for version 7.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)
This commit is contained in:
Bram Moolenaar
2013-11-04 01:41:17 +01:00
parent ba2d7ffc4b
commit d9820538bd
5 changed files with 48 additions and 12 deletions

View File

@@ -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;
}