1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-19 00:32:12 +01:00

Fix diff highligting

This commit is contained in:
Daniel Mach 2025-01-16 12:53:22 +01:00
parent e23c566b0d
commit 31c3ed2d9e

View File

@ -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"