diff options
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp index e9dca8e3..57720e6d 100644 --- a/complete.cpp +++ b/complete.cpp @@ -277,6 +277,8 @@ class completer_t { void complete_param_expand(const wcstring &str, bool do_file); + void debug_print_completions(); + void complete_cmd( const wcstring &str, bool use_function, bool use_builtin, @@ -1522,8 +1524,14 @@ void completer_t::complete_param_expand( const wcstring &sstr, bool do_file) flags | this->expand_flags() ) == EXPAND_ERROR ) { debug( 3, L"Error while expanding string '%ls'", comp_str ); - } - + } +} + +void completer_t::debug_print_completions() +{ + for (size_t i=0; i < completions.size(); i++) { + printf("- Completion: %ls\n", completions.at(i).completion.c_str()); + } } /** |