nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 399a024857a0d72a11dcfa747d6387d90698b97b
parent d131c2d43845f2189975ee55520dcfa4edb99aa5
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  8 Feb 2021 10:18:22 +0100

minibar: suppress the toggling feedback for M-C, but show it for M-Y/M-P

In addition, suppress the feedback for M-C also when --minibar
isn't used, as the feedback obscures the effect of the toggle:
showing information about the cursor position on the status bar.

This fixes https://savannah.gnu.org/bugs/?60019.

Bug existed since commit 7545eb5b from one week ago.

Diffstat:
Msrc/nano.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1111,7 +1111,13 @@ void do_toggle(int flag) if (flag == NO_HELP || flag == NO_SYNTAX) enabled = !enabled; + if (flag == CONSTANT_SHOW) + wipe_statusbar(); + else if (ISSET(MINIBAR) && (flag == NO_HELP || flag == LINE_NUMBERS )) + ; + else if (!ISSET(MINIBAR) || !ISSET(STATEFLAGS) || flag == SMART_HOME || flag == CUT_FROM_CURSOR || + flag == NO_SYNTAX || flag == WHITESPACE_DISPLAY || flag == TABS_TO_SPACES || flag == USE_MOUSE || flag == SUSPENDABLE) statusline(REMARK, "%s %s", _(flagtostr(flag)), enabled ? _("enabled") : _("disabled"));