summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-12-18 23:17:38 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-12-18 23:17:38 +0000
commitc454cf137971fda09c0c0a3af6acea952efc2f3a (patch)
treeb0fd3600252c3557b5ad47def640816a3caf1a6e /src/normal.cc
parenteee2cb3a6e4b2981d6775bef3658804b6e9873f1 (diff)
Avoid eol after undo/redo
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index d1e311dc..e4b9c8d1 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1240,6 +1240,7 @@ void undo(Context& context, NormalParams)
auto ranges = compute_modified_ranges(buffer, timestamp);
if (not ranges.empty())
context.set_selections(std::move(ranges));
+ context.selections().avoid_eol();
}
else if (not res)
context.print_status({ "nothing left to undo", get_face("Information") });
@@ -1256,6 +1257,7 @@ void redo(Context& context, NormalParams)
auto ranges = compute_modified_ranges(buffer, timestamp);
if (not ranges.empty())
context.set_selections(std::move(ranges));
+ context.selections().avoid_eol();
}
else if (not res)