Fix undo handling in <a-o>/<a-O>
This commit is contained in:
parent
7389e37b4b
commit
26cc8b3ee0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user