From 623fcd88ea57bbaa8458b0529efe22caf14f1ed0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 Jul 2016 23:53:16 +0100 Subject: Do not avoid end of lines after selecting modified ranges in undo Fixes #751 --- src/normal.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 67937351..31afeb90 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1431,7 +1431,6 @@ void undo(Context& context, NormalParams params) auto ranges = compute_modified_ranges(buffer, timestamp); if (not ranges.empty()) context.selections_write_only() = std::move(ranges); - context.selections().avoid_eol(); } else context.print_status({ "nothing left to undo", get_face("Information") }); @@ -1446,7 +1445,6 @@ void redo(Context& context, NormalParams params) auto ranges = compute_modified_ranges(buffer, timestamp); if (not ranges.empty()) context.selections_write_only() = std::move(ranges); - context.selections().avoid_eol(); } else context.print_status({ "nothing left to redo", get_face("Information") }); -- cgit v1.2.3