summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc3
1 files changed, 1 insertions, 2 deletions
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();