mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
tweaks: reshuffle a condition, to elide a blank string
This commit is contained in:
parent
d5fcc9271a
commit
0906181d75
@ -2047,8 +2047,8 @@ void titlebar(const char *path)
|
|||||||
/* When requested, show on the title bar the state of three options and
|
/* 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. */
|
* the state of the mark and whether a macro is being recorded. */
|
||||||
if (ISSET(STATEFLAGS) && !ISSET(VIEW_MODE)) {
|
if (ISSET(STATEFLAGS) && !ISSET(VIEW_MODE)) {
|
||||||
if (COLS > 1)
|
if (openfile->modified && COLS > 1)
|
||||||
waddstr(topwin, openfile->modified ? " *" : " ");
|
waddstr(topwin, " *");
|
||||||
if (statelen < COLS) {
|
if (statelen < COLS) {
|
||||||
wmove(topwin, 0, COLS + 2 - statelen);
|
wmove(topwin, 0, COLS + 2 - statelen);
|
||||||
waddstr(topwin, ISSET(AUTOINDENT) ? "I" : " ");
|
waddstr(topwin, ISSET(AUTOINDENT) ? "I" : " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user