summaryrefslogtreecommitdiff
path: root/src/hook_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-13 13:12:33 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-13 13:14:23 +0100
commitfa85f0fc32b105bef5948585a7d7a38c2910854b (patch)
tree62df5d4c99b3ae89274c848895fa94445f870edb /src/hook_manager.cc
parentb6f2b872b003639e3a596a2e4a1b817529ebd729 (diff)
Refactor regex uses, do not reference boost except in regex.hh
Diffstat (limited to 'src/hook_manager.cc')
-rw-r--r--src/hook_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hook_manager.cc b/src/hook_manager.cc
index 7d804696..cfade4d7 100644
--- a/src/hook_manager.cc
+++ b/src/hook_manager.cc
@@ -2,6 +2,7 @@
#include "context.hh"
#include "debug.hh"
+#include "regex.hh"
namespace Kakoune
{
@@ -50,7 +51,7 @@ void HookManager::run_hook(const String& hook_name,
for (auto& hook : hook_list_it->second)
{
if (not hook.first.empty() and not disabled_hooks.empty() and
- boost::regex_match(hook.first, disabled_hooks))
+ regex_match(hook.first, disabled_hooks))
continue;
try