Subject: Bug when colors and -C used together

From: Alex Meiburg <[email-masked]>
Date: Mon, 29 Jul 2019 20:42:29 +0000

Hello! I'd like to report a bug. I'm running version "diff (GNU diffutils) 3.6, Copyright (C) 2017 Free Software Foundation, Inc.". When I run it with --color=always and -C1, the wrong lines are highlighted: it highlights the lines that _would have_ been the line numbers of output if no context was enabled, but since there are extra lines of output, it's highlighting the wrong lines.

Best,

Alex Meiburg