From 31c3ed2d9ea9ca8dfbb444ccb346425028d05e6d Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 16 Jan 2025 12:53:22 +0100 Subject: [PATCH] Fix diff highligting --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index feb7592d..e64ee139 100644 --- a/osc/core.py +++ b/osc/core.py @@ -1935,7 +1935,7 @@ def get_default_editor(): def format_diff_line(line): - if line.startswith(b"+++") or line.startswith(b"---") or line.startswith(b"Index:"): + if line.startswith(b"+++ ") or line.startswith(b"--- ") or line.startswith(b"Index:"): line = b"\x1b[1m" + line + b"\x1b[0m" elif line.startswith(b"+"): line = b"\x1b[32m" + line + b"\x1b[0m"