From 7c598b8a278bda8132c534e7ec9c4c173b43e8b5 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 5 Oct 2017 19:00:10 +0200 Subject: [PATCH] Added missing return types to C/C++ autocomplete --- src/source_clang.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); + } } } }