From 0906181d75331c00010ca1718f3b99dbd7d2c271 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 24 Sep 2020 16:24:34 +0200 Subject: [PATCH] tweaks: reshuffle a condition, to elide a blank string --- src/winio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winio.c b/src/winio.c index edb1a3b4..3ef668b8 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2047,8 +2047,8 @@ void titlebar(const char *path) /* 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 (COLS > 1) - waddstr(topwin, openfile->modified ? " *" : " "); + if (openfile->modified && COLS > 1) + waddstr(topwin, " *"); if (statelen < COLS) { wmove(topwin, 0, COLS + 2 - statelen); waddstr(topwin, ISSET(AUTOINDENT) ? "I" : " ");