diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 28b601ba2..dbf3ab3d4 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -556,4 +556,22 @@ impHandler(openUrl) return true; } +impHandler(execute) +{ + const size_t idx = event.args.find(" "); + std::string name; + std::string params; + if (idx == std::string::npos) + { + name = event.args; + } + else + { + name = event.args.substr(0, idx); + params = event.args.substr(idx + 1); + } + execFile(name, name, params, ""); + return true; +} + } // namespace Actions |