From 3165f28a3c603e4cecca08b24a17827476d5681b Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 6 Aug 2022 21:56:03 +0200 Subject: [PATCH] Make parameter const --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normal.cc b/src/normal.cc index c310817de..69adfc785 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1777,7 +1777,7 @@ void trim_selections(Context& context, NormalParams) selections.remove(i); } -SelectionList read_selections_from_register(char reg, Context& context) +SelectionList read_selections_from_register(char reg, const Context& context) { if (not is_basic_alpha(reg) and reg != '^') throw runtime_error("selections can only be saved to the '^' and alphabetic registers");