diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-27 07:28:25 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-27 07:28:25 +1100 |
| commit | 3d3a37a80cec3be1b38c8176fab0425279c19303 (patch) | |
| tree | 52e12eb569749ab8d850be1a4468014d75706c97 /src/input_handler.cc | |
| parent | 253790be515d9d742774b94f8ed80029571f7591 (diff) | |
Fix 'O' not putting the cursor on the correct line
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), |
