Fix undo handling in <a-o>/<a-O>

This commit is contained in:
Maxime Coste 2017-07-13 08:24:55 +09:00
parent 7389e37b4b
commit 26cc8b3ee0

View File

@ -1764,6 +1764,7 @@ void add_empty_line(Context& context, NormalParams params)
String new_lines{'\n', CharCount{count}};
auto& buffer = context.buffer();
auto& sels = context.selections();
ScopedEdition edition{context};
for (int i = 0; i < sels.size(); ++i)
{
auto line = (above ? sels[i].min().line : sels[i].max().line + 1) + (i * count);