Browse Source

Reduced width of C/C++ completions slightly

pipelines/353213535
eidheim 4 years ago
parent
commit
10a1ccba3c
  1. 4
      src/source_clang.cpp

4
src/source_clang.cpp

@ -1049,7 +1049,7 @@ Source::ClangViewAutocomplete::ClangViewAutocomplete(const boost::filesystem::pa
break; break;
} }
if(kind == clangmm::CompletionChunk_ResultType) if(kind == clangmm::CompletionChunk_ResultType)
return_text = std::string(" ") + chunk_cstr.c_str; return_text = std::string("") + chunk_cstr.c_str;
else else
text += chunk_cstr.c_str; text += chunk_cstr.c_str;
} }
@ -1105,7 +1105,7 @@ Source::ClangViewAutocomplete::ClangViewAutocomplete(const boost::filesystem::pa
} }
std::string row; std::string row;
auto pos = text.find(" "); auto pos = text.find("");
if(pos != std::string::npos) if(pos != std::string::npos)
row = text.substr(0, pos); row = text.substr(0, pos);
else else

Loading…
Cancel
Save