diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-25 18:44:14 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-07 16:26:14 +0100 |
| commit | 93408e4b76f5d85fec2354c36a212d40df4fbc84 (patch) | |
| tree | e56dc8aa3162b1358b52a11901e336c46531e21a /src/input_handler.cc | |
| parent | 3a3144f3f5c822d8931baf2a94bb75cfe4024a18 (diff) | |
Do not use any display information to determine where the cursor moves
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 3 |
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(); |
