Do not avoid end of lines after selecting modified ranges in undo

Fixes #751
This commit is contained in:
Maxime Coste 2016-07-27 23:53:16 +01:00
parent 14198fadb4
commit 623fcd88ea
4 changed files with 7 additions and 2 deletions

View File

@ -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") });

View File

@ -0,0 +1 @@
mS\d+<ret>du

View File

@ -0,0 +1,3 @@
{
11, 22
};

View File

@ -0,0 +1,3 @@
{
:, :
}