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/reader.cpp | |
parent | 31bc88d16f7396865bbf2c7ae5d3afc80b44e254 (diff) |
Complete to take a pointer to output completions, not a mutable ref
Diffstat (limited to 'src/reader.cpp')
-rw-r--r-- | src/reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.cpp b/src/reader.cpp index 900479b2..39bfc0bb 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1506,7 +1506,7 @@ struct autosuggestion_context_t /* Try normal completions */ std::vector<completion_t> completions; - complete(search_string, completions, COMPLETION_REQUEST_AUTOSUGGESTION); + complete(search_string, &completions, COMPLETION_REQUEST_AUTOSUGGESTION); completions_sort_and_prioritize(&completions); if (! completions.empty()) { @@ -3324,7 +3324,7 @@ const wchar_t *reader_readline(int nchars) const wcstring buffcpy = wcstring(cmdsub_begin, token_end); //fprintf(stderr, "Complete (%ls)\n", buffcpy.c_str()); - data->complete_func(buffcpy, comp, COMPLETION_REQUEST_DEFAULT | COMPLETION_REQUEST_DESCRIPTIONS | COMPLETION_REQUEST_FUZZY_MATCH); + data->complete_func(buffcpy, &comp, COMPLETION_REQUEST_DEFAULT | COMPLETION_REQUEST_DESCRIPTIONS | COMPLETION_REQUEST_FUZZY_MATCH); /* Munge our completions */ completions_sort_and_prioritize(&comp); |