[PATCH 3 of 3] histedit: render a rolled up description using the proper roll colours

Yuya Nishihara yuya at tcha.org
Fri Nov 8 21:06:33 EST 2019


On Thu, 07 Nov 2019 15:31:48 -0500, Jordi GutiƩrrez Hermoso wrote:
> # HG changeset patch
> # User Jordi GutiƩrrez Hermoso <jordigh at octave.org>
> # Date 1572477597 14400
> #      Wed Oct 30 19:19:57 2019 -0400
> # Node ID 4d0d2d692de029b4838d8fc12a48004749db9480
> # Parent  47446180a5ee16af1c90bb20a8dca92fa9d5f794
> histedit: render a rolled up description using the proper roll colours

> @@ -1508,7 +1511,12 @@ pgup/K: move patch up, pgdn/J: move patc
>                      curses.color_pair(COLOR_CURRENT) | curses.A_BOLD,
>                  )
>              else:
> +                rollcolor = COLOR_ROLL
>                  addln(rulesscr, y, 2, rule)
> +
> +            if rule.action == b'roll':
> +                rulesscr.addstr(y, 2 + len(rule.prefix), rule.desc, curses.color_pair(rollcolor))

Nit: exceeds 80-column rule. Maybe you need to run black.


More information about the Mercurial-devel mailing list