From 58b4e29e81f55d28d5179f5d390a2a715f030aed Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 25 Mar 2014 19:43:56 +0000 Subject: [PATCH] ShellManager: Change the env var detection regex to find more uses The regex is now just '\bkak_\w+\b', no need for it to be looking like a shell variable use. This allows other tools that the shell to access Kakoune vars as long as the name appears directly in the shell string. --- src/shell_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 1d3d8625..bdda6c05 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -10,7 +10,7 @@ namespace Kakoune { -static const Regex env_var_regex(R"(\$\{kak_(\w+)[^}]*\}|\$kak_(\w+))"); +static const Regex env_var_regex(R"(\bkak_(\w+)\b)"); ShellManager::ShellManager() {