summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-05-11 00:03:45 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-05-11 00:03:45 +0100
commit6b1bd84e8e2bc84101bd2370c655223ef0a13d1d (patch)
tree4e2e60ea44a31a2e56a8311756468f2a7c52ce38 /src
parent6731e5fe2deb8b6f7812c841bf6287d4747a44e4 (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')
-rw-r--r--src/normal.cc4
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();
}