diff --git a/src/source_clang.cc b/src/source_clang.cc index 763d641..189a9af 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -653,8 +653,11 @@ Source::ClangViewAutocomplete::ClangViewAutocomplete(const boost::filesystem::pa text+=chunk_cstr.c_str; } } - if(match && !text.empty()) + if(match && !text.empty()) { + if(!return_text.empty()) + text+=return_text; autocomplete.rows.emplace_back(std::move(text), result.get_brief_comment()); + } } } }