diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-05 14:21:21 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-05 14:21:21 -0700 |
commit | 07f5319472ed7c052b25aec7d29e92126b9bca48 (patch) | |
tree | caba51032fe4e069c8a3fb0cb13518107d0a3721 /complete.cpp | |
parent | 47019e315ac9c4b20880fdaa403ec4ca04399d14 (diff) |
Fix for failing to properly complete cd command
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()); + } } /** |