From 6339de5367650167ed6ae085c50f2d8945703cd6 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 31 Jan 2021 19:20:38 +0100 Subject: [PATCH] minibar: hide cursor position and character code when constantshow is off MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This gives the M-C toggle a fitting function (instead of leaving it a useless keystroke), and allows the minimalists to have an even cleaner interface. Suggested-by: Sébastien Desreux --- src/winio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winio.c b/src/winio.c index 806b9dc0..d6783e77 100644 --- 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') -- 2.29.2