[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH 1/4] new feature: option --marginstripe that sho
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH 1/4] new feature: option --marginstripe that shows a vertical guiding bar |
Date: |
Sun, 3 Mar 2019 14:15:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
Op 03-03-19 om 12:03 schreef Benno Schulenberg:
> + if (stripe_column > 0) {
> + const char *text = converted + actual_x(converted,
> stripe_column - 1);
> + const char *striped_char = (*text == '\0') ? " " : text;
> +
> + wattron(edit, interface_color_pair[ERROR_MESSAGE]);
> + mvwaddnstr(edit, row, margin + stripe_column - 1, striped_char,
> 1);
> + wattroff(edit, interface_color_pair[ERROR_MESSAGE]);
> + }
To prevent the stripe from appearing in help texts, the if needs to be:
if (stripe_column > 0 && !inhelp)
Benno
signature.asc
Description: OpenPGP digital signature