diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-19 21:58:26 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-19 21:58:26 +0000 |
| commit | c0f1b7b99f6b882e9622f41e1ff05f927210ce90 (patch) | |
| tree | d72affe9da79800b5e6686d1f558a5823c5b9c8e /src/shell_manager.cc | |
| parent | b67d593551b21547630bbd08372278c36d14f413 (diff) | |
Introduce a debug flags option to control some tracing
Support shell|hooks and write traces in debug buffer
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 6ac02d65..f23725a1 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -87,6 +87,9 @@ std::pair<String, int> ShellManager::eval( { static const Regex re(R"(\bkak_(\w+)\b)"); + if (context.options()["debug"].get<DebugFlags>() & DebugFlags::Shell) + write_to_debug_buffer(format("shell:\n{}\n----\n", cmdline)); + Vector<String> kak_env; for (RegexIterator<const char*> it{cmdline.begin(), cmdline.end(), re}, end; it != end; ++it) |
