nano

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

commit 878bd53d11e546810838328c6d81c78b415d1672
parent e0a4ee014821aeb6d34b06d26a59e8549c3d1f33
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 31 Jan 2021 19:20:38 +0100

minibar: show cursor position + character code only with --constantshow

This allows having an even leaner interface, and gives the M-C toggle
an appropriate function (instead of leaving it a "dead" keystroke).

Suggested-by: Sébastien Desreux <seb@h-k.fr>

Diffstat:
Msrc/winio.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -2133,11 +2133,11 @@ void minibar(void) #endif /* Display the line/column position of the cursor. */ - if (namewidth + tallywidth + placewidth + 32 < COLS) + if (ISSET(CONSTANT_SHOW) && namewidth + tallywidth + placewidth + 32 < COLS) mvwaddstr(bottomwin, 0, COLS - 27 - placewidth, location); /* Display the hexadecimal code of the character under the cursor. */ - if (namewidth + tallywidth + 28 < COLS) { + if (ISSET(CONSTANT_SHOW) && namewidth + tallywidth + 28 < COLS) { char *this_position = openfile->current->data + openfile->current_x; if (*this_position == '\0')