Do not merge overlapping selections in InputMode::Replace

Fixes #237
This commit is contained in:
Maxime Coste 2014-11-22 19:58:34 +00:00
parent ab640f9fbf
commit 88def85d77
4 changed files with 4 additions and 1 deletions

View File

@ -979,7 +979,7 @@ private:
kak_assert(false); // invalid for interactive insert
break;
}
if (mode != InsertMode::Append)
if (mode != InsertMode::Append and mode != InsertMode::Replace)
selections.sort_and_merge_overlapping();
selections.check_invariant();
buffer.check_invariant();

View File

@ -0,0 +1 @@
cthis was <c-r>" <esc>

View File

@ -0,0 +1 @@
%(word1)%(word2)%(word3)%(word4)

View File

@ -0,0 +1 @@
this was word1 this was word2 this was word3 this was word4