From 07f5319472ed7c052b25aec7d29e92126b9bca48 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 5 May 2012 14:21:21 -0700 Subject: Fix for failing to properly complete cd command --- complete.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'complete.cpp') 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()); + } } /** -- cgit v1.2.3