Allow access to end of line with horizontal moves (h and l)

Lets enable that for some time, get some feedback on that behaviour
change, and see if we keep it.
This commit is contained in:
Maxime Coste 2016-05-11 00:03:45 +01:00
parent 6731e5fe2d
commit 6b1bd84e8e

View File

@ -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<Type, LineCount>::value)
selections.avoid_eol();
selections.sort_and_merge_overlapping();
}