Fix indent commands not being committed as an undo group

2edabde919 removed the
ScopedEdition that took care of committing the undo
group after indenting operations.
This commit is contained in:
Maxime Coste 2022-05-26 17:52:02 +10:00
parent 4c7c4a1454
commit a63465aba8

View File

@ -1204,6 +1204,7 @@ void indent(Context& context, NormalParams params)
CharCount indent_width = context.options()["indentwidth"].get<int>();
String indent = indent_width == 0 ? String{'\t', count} : String{' ', indent_width * count};
ScopedEdition edition(context);
auto& buffer = context.buffer();
LineCount last_line = 0;
for (auto& sel : context.selections())