nano

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

commit 5c4c30e26b4c477a9d33d1c64146ae3959ceb4da
parent 1b65d39722fe597817c3edfe214ca39cda9a4df4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 21 Dec 2020 14:54:49 +0100

display: do not show the state flags in the help viewer or file browser

The state flags are relevant only when editing.

This fixes https://savannah.gnu.org/bugs/?59744.
Indirectly-reported-by: ObeliX <ObeliX-@gmx.de>

Bug existed since version 5.3, since --stateflags was introduced.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2004,7 +2004,7 @@ void titlebar(const char *path) #ifndef NANO_TINY /* When requested, show on the title bar the state of three options and * the state of the mark and whether a macro is being recorded. */ - if (ISSET(STATEFLAGS) && !ISSET(VIEW_MODE)) { + if (*state && ISSET(STATEFLAGS) && !ISSET(VIEW_MODE)) { if (openfile->modified && COLS > 1) waddstr(topwin, " *"); if (statelen < COLS) {