summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 79c8fa4c..a6dbd5f7 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -553,7 +553,7 @@ const CommandDesc add_hook_cmd = {
if (regex_match(param.begin(), param.end(), regex))
CommandManager::instance().execute(command, context, {},
- { { "hook_param", param.str() } });
+ { { "hook_param", param } });
};
StringView group;
if (parser.has_option("group"))