diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-05-11 00:03:45 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-05-11 00:03:45 +0100 |
| commit | 6b1bd84e8e2bc84101bd2370c655223ef0a13d1d (patch) | |
| tree | 4e2e60ea44a31a2e56a8311756468f2a7c52ce38 /src/normal.cc | |
| parent | 6731e5fe2deb8b6f7812c841bf6287d4747a44e4 (diff) | |
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.
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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<Type, LineCount>::value) + selections.avoid_eol(); + selections.sort_and_merge_overlapping(); } |
