Commit f9fea02f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

help: suppress nano's name and number to make it clearer this is help

The top-left corner changing is far more conspicuous than the top right.
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
...@@ -1972,6 +1972,8 @@ void titlebar(const char *path) ...@@ -1972,6 +1972,8 @@ void titlebar(const char *path)
/* The width that "Modified" would take up. */ /* The width that "Modified" would take up. */
size_t offset = 0; size_t offset = 0;
/* The position at which the center part of the titlebar starts. */ /* The position at which the center part of the titlebar starts. */
const char *branding = BRANDING;
/* What is shown in the top left corner. */
const char *prefix = ""; const char *prefix = "";
/* What is shown before the path -- "File:", "DIR:", or "". */ /* What is shown before the path -- "File:", "DIR:", or "". */
const char *state = ""; const char *state = "";
...@@ -1996,7 +1998,7 @@ void titlebar(const char *path) ...@@ -1996,7 +1998,7 @@ void titlebar(const char *path)
/* Figure out the path, prefix and state strings. */ /* Figure out the path, prefix and state strings. */
if (inhelp) if (inhelp)
state = _("Help"); branding = "";
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
else if (path != NULL) else if (path != NULL)
prefix = _("DIR:"); prefix = _("DIR:");
...@@ -2018,7 +2020,7 @@ void titlebar(const char *path) ...@@ -2018,7 +2020,7 @@ void titlebar(const char *path)
} }
/* Determine the widths of the four elements, including their padding. */ /* Determine the widths of the four elements, including their padding. */
verlen = strlenpt(BRANDING) + 3; verlen = strlenpt(branding) + 3;
prefixlen = strlenpt(prefix); prefixlen = strlenpt(prefix);
if (prefixlen > 0) if (prefixlen > 0)
prefixlen++; prefixlen++;
...@@ -2031,7 +2033,7 @@ void titlebar(const char *path) ...@@ -2031,7 +2033,7 @@ void titlebar(const char *path)
/* Only print the version message when there is room for it. */ /* Only print the version message when there is room for it. */
if (verlen + prefixlen + pathlen + pluglen + statelen <= COLS) if (verlen + prefixlen + pathlen + pluglen + statelen <= COLS)
mvwaddstr(topwin, 0, 2, BRANDING); mvwaddstr(topwin, 0, 2, branding);
else { else {
verlen = 2; verlen = 2;
/* If things don't fit yet, give up the placeholder. */ /* If things don't fit yet, give up the placeholder. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment