1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-19 01:11:36 +03:00

Make parameter const

This commit is contained in:
Johannes Altmanninger 2022-08-06 21:56:03 +02:00
parent 021da117cf
commit 3165f28a3c

View File

@ -1777,7 +1777,7 @@ void trim_selections(Context& context, NormalParams)
selections.remove(i); 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 != '^') if (not is_basic_alpha(reg) and reg != '^')
throw runtime_error("selections can only be saved to the '^' and alphabetic registers"); throw runtime_error("selections can only be saved to the '^' and alphabetic registers");