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>
master
Benno Schulenberg 2021-01-31 19:20:38 +01:00
parent e0a4ee0148
commit 878bd53d11
1 changed files with 2 additions and 2 deletions

View File

@ -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')