From 877ad5934fd6541e86b67051c50bcc708ae67e77 Mon Sep 17 00:00:00 2001 From: Shubham Bhagat Date: Sun, 29 Oct 2017 17:02:01 +0530 Subject: [PATCH] Update Candidate.cpp improve readibility --- cpp/ycm/Candidate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ||