mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-01 08:23:05 +03:00
Fix useles copy of hook_func in HookManager::add_hook parameter
This commit is contained in:
parent
295fa5b27d
commit
502c5da0e9
@ -822,7 +822,7 @@ const CommandDesc add_hook_cmd = {
|
||||
}
|
||||
};
|
||||
auto group = parser.get_switch("group").value_or(StringView{});
|
||||
get_scope(parser[0], context).hooks().add_hook(parser[1], group.str(), hook_func);
|
||||
get_scope(parser[0], context).hooks().add_hook(parser[1], group.str(), std::move(hook_func));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user