summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-03-25 19:43:56 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-03-25 19:43:56 +0000
commit58b4e29e81f55d28d5179f5d390a2a715f030aed (patch)
tree28f80fd5233be3c6bb242510373092fcf299c2d8 /src/shell_manager.cc
parent764e450fddc1cf4a001aeb0f52adfc2e345112ac (diff)
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.
Diffstat (limited to 'src/shell_manager.cc')
-rw-r--r--src/shell_manager.cc2
1 files changed, 1 insertions, 1 deletions
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()
{