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:
parent
e23c566b0d
commit
31c3ed2d9e
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user