summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-11-10 08:56:42 +1100
committerMaxime Coste <mawww@kakoune.org>2022-11-10 08:56:42 +1100
commit91d45a100a39345f06d9789ded9172fe60887c27 (patch)
tree4a421164f27f50c6f7707959c71555c19eb00a10 /src/commands.cc
parentbfa3c568ccdc39910e5f9a0cbcc73ed05275087a (diff)
parentc2ab5d46940bb01ab4ab2b4ef82b6829ddbadb5c (diff)
Merge remote-tracking branch 'krobelus/undo-selection-change'
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 001ba0f9..123736b0 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -2020,6 +2020,7 @@ void context_wrap(const ParametersParser& parser, Context& context, StringView d
ScopedSetBool disable_history(c.history_disabled());
ScopedEdition edition{c};
+ ScopedSelectionEdition selection_edition{c};
if (parser.get_switch("itersel"))
{
@@ -2534,6 +2535,7 @@ const CommandDesc select_cmd = {
else if (parser.get_switch("display-column"))
column_type = ColumnType::DisplayColumn;
ColumnCount tabstop = context.options()["tabstop"].get<int>();
+ ScopedSelectionEdition selection_edition{context};
context.selections_write_only() = selection_list_from_strings(buffer, column_type, parser.positionals_from(0), timestamp, 0, tabstop);
}
};