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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user