Oops, wrong variable
This commit is contained in:
parent
e8b74d10d1
commit
f8a7d5c579
@ -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] == '+')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user