hgext/histedit.py
changeset 42088 770e87999701
parent 42072 fc0095256513
child 42089 16692aa3472b
--- a/hgext/histedit.py	Sun Apr 07 16:53:47 2019 +0200
+++ b/hgext/histedit.py	Fri Apr 05 14:54:45 2019 -0400
@@ -1238,6 +1238,11 @@
     return displayer.hunk[rule.ctx.rev()].splitlines()
 
 def _chisteditmain(repo, rules, stdscr):
+    try:
+        curses.use_default_colors()
+    except curses.error:
+        pass
+
     # initialize color pattern
     curses.init_pair(COLOR_HELP, curses.COLOR_WHITE, curses.COLOR_BLUE)
     curses.init_pair(COLOR_SELECTED, curses.COLOR_BLACK, curses.COLOR_WHITE)