diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-06 19:17:43 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-18 17:00:26 -0800 |
commit | c39b94949be30dfbc1c3e271b37ca04cff303b16 (patch) | |
tree | 09f608eae67bfacc5412d4fc3f73cd36a12c7996 /src/complete.cpp | |
parent | 31bc88d16f7396865bbf2c7ae5d3afc80b44e254 (diff) |
Complete to take a pointer to output completions, not a mutable ref
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(); } |