diff --git a/src/normal.cc b/src/normal.cc index ed0f3e02..940e11d8 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1504,7 +1504,9 @@ void move(Context& context, NormalParams params) sel.anchor() = mode == SelectMode::Extend ? sel.anchor() : cursor; sel.cursor() = cursor; } - selections.avoid_eol(); + if (std::is_same::value) + selections.avoid_eol(); + selections.sort_and_merge_overlapping(); }