From 93408e4b76f5d85fec2354c36a212d40df4fbc84 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 25 Apr 2017 18:44:14 +0100 Subject: Do not use any display information to determine where the cursor moves --- src/input_handler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index b378b871..b7f424aa 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1242,8 +1242,7 @@ private: auto& selections = context().selections(); for (auto& sel : selections) { - auto cursor = context().has_window() ? context().window().offset_coord(sel.cursor(), offset) - : context().buffer().offset_coord(sel.cursor(), offset); + auto cursor = context().buffer().offset_coord(sel.cursor(), offset); sel.anchor() = sel.cursor() = cursor; } selections.sort_and_merge_overlapping(); -- cgit v1.2.3