diff options
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc index bd124ff6..d9f23f1b 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1696,9 +1696,7 @@ void move(Context& context, NormalParams params) 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() = mode == SelectMode::Extend ? sel.anchor() : cursor; sel.cursor() = cursor; } |
