Oops, wrong variable

This commit is contained in:
tastytea 2022-03-16 16:52:57 +01:00
parent e8b74d10d1
commit f8a7d5c579
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ int main()
{
const auto line_nc{remove_colors(line)};
// Don't color +++ and --- lines
if (line.length() >= 2
&& (line.length() < 3 || (line_nc[2] != '+' && line_nc[2] != '-')))
if (line_nc.length() >= 2
&& (line_nc.length() < 3
|| (line_nc[2] != '+' && line_nc[2] != '-')))
{
if (line_nc[1] == '+')
{