diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-22 19:58:34 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-22 21:20:29 +0000 |
| commit | 88def85d77b935af3c869e5ede41ca125a114daf (patch) | |
| tree | dd91c86b40f5c8b579a01393660094e5a6070378 /src/input_handler.cc | |
| parent | ab640f9fbf96320997643067bd8fb95b82b6377a (diff) | |
Do not merge overlapping selections in InputMode::Replace
Fixes #237
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index b543a268..71a5d63f 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -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(); |
