diff options
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 210b0ec9..20228dd1 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1365,7 +1365,7 @@ private: buffer.insert(sel.min().line + inserted_count, String{'\n', CharCount{count}}); for (int i = 0; i < count; ++i) - new_sels.push_back({sel.max().line + inserted_count + i}); + new_sels.push_back({sel.min().line + inserted_count + i}); inserted_count += count; } selections.set(std::move(new_sels), |
