diff --git a/cpp/ycm/Candidate.cpp b/cpp/ycm/Candidate.cpp index 401c650de2..fc263fe23a 100644 --- a/cpp/ycm/Candidate.cpp +++ b/cpp/ycm/Candidate.cpp @@ -50,8 +50,8 @@ std::string GetWordBoundaryChars( const std::string &text ) { IsUppercase( text[ i ] ) && !IsUppercase( text[ i - 1 ] ); bool is_alpha_after_punctuation = i > 0 && - ispunct( text[ i - 1 ] ) && - isalpha( text[ i ] ); + (ispunct( text[ i - 1 ] ) && + isalpha( text[ i ] )); if ( is_first_char_but_not_punctuation || is_good_uppercase ||