diff options
Diffstat (limited to 'src/complete.cpp')
-rw-r--r-- | src/complete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complete.cpp b/src/complete.cpp index 5da53aeb..266451c4 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -1631,7 +1631,7 @@ bool completer_t::try_complete_user(const wcstring &str) return res; } -void complete(const wcstring &cmd_with_subcmds, std::vector<completion_t> &comps, completion_request_flags_t flags) +void complete(const wcstring &cmd_with_subcmds, std::vector<completion_t> *out_comps, completion_request_flags_t flags) { /* Determine the innermost subcommand */ const wchar_t *cmdsubst_begin, *cmdsubst_end; @@ -1872,7 +1872,7 @@ void complete(const wcstring &cmd_with_subcmds, std::vector<completion_t> &comps } } - comps = completer.get_completions(); + *out_comps = completer.get_completions(); } |