diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-08-14 23:51:24 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-08-14 23:51:24 +0100 |
| commit | ceb10665d1f76f6ad8a9360d2cb70176baa9e889 (patch) | |
| tree | 68cf66eca21e6de2c5bee5e2e5559827bed700ca /src/normal.cc | |
| parent | 05887808665b0e18a076079be93a8a7acf1b06bd (diff) | |
Add support for running kakoune as a filter, using -f 'keys'
It will cycle on every given files, apply the keys and write to
<filename>.kak-out. Only normal/insert mode is available, kakrc
are not read.
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc index 04aef5e3..34428a1a 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -341,6 +341,9 @@ void for_each_char(Context& context, int) void command(Context& context, int) { + if (not CommandManager::has_instance()) + return; + context.input_handler().prompt( ":", "", get_face("Prompt"), std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3, _4), |
