From 3d3a37a80cec3be1b38c8176fab0425279c19303 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 27 Mar 2018 07:28:25 +1100 Subject: Fix 'O' not putting the cursor on the correct line --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') 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), -- cgit v1.2.3