From a63465aba8c6309caa877d4420083bfa8818b0da Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 May 2022 17:52:02 +1000 Subject: [PATCH] Fix indent commands not being committed as an undo group 2edabde9193d301ed0db14ac967d8b5503af7d8c removed the ScopedEdition that took care of committing the undo group after indenting operations. --- src/normal.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/normal.cc b/src/normal.cc index 25df66b3..27bdb3dd 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1204,6 +1204,7 @@ void indent(Context& context, NormalParams params) CharCount indent_width = context.options()["indentwidth"].get(); 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())