Not adding a '(' after a function name insert

This commit is contained in:
Strahinja Val Markovic 2012-07-26 20:53:38 -07:00
parent 3cc4cf8e10
commit e9cf3c14b2

View File

@ -23,12 +23,9 @@ namespace YouCompleteMe
struct CompletionData struct CompletionData
{ {
// What should actually be inserted into the buffer. For functions, this // What should actually be inserted into the buffer.
// should be the original string plus "("
std::string TextToInsertInBuffer() std::string TextToInsertInBuffer()
{ {
if ( kind_ == 'f' )
return original_string_ + "(";
return original_string_; return original_string_;
} }