##// END OF EJS Templates
histedit: fix diff colors...
Jordi Gutiérrez Hermoso -
r51226:9f3d3404 stable draft
parent child Browse files
Show More
@@ -1427,11 +1427,11 b' pgup/K: move patch up, pgdn/J: move patc'
1427 for y in range(0, length):
1427 for y in range(0, length):
1428 line = output[y]
1428 line = output[y]
1429 if diffcolors:
1429 if diffcolors:
1430 if line and line[0] == b'+':
1430 if line.startswith(b'+'):
1431 win.addstr(
1431 win.addstr(
1432 y, 0, line, curses.color_pair(COLOR_DIFF_ADD_LINE)
1432 y, 0, line, curses.color_pair(COLOR_DIFF_ADD_LINE)
1433 )
1433 )
1434 elif line and line[0] == b'-':
1434 elif line.startswith(b'-'):
1435 win.addstr(
1435 win.addstr(
1436 y, 0, line, curses.color_pair(COLOR_DIFF_DEL_LINE)
1436 y, 0, line, curses.color_pair(COLOR_DIFF_DEL_LINE)
1437 )
1437 )
General Comments 0
You need to be logged in to leave comments. Login now