From f9fea02fc510b38edad2ebecb6ca074cb3e70e36 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 5 Dec 2016 13:33:05 +0100
Subject: [PATCH] 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.
---
 src/winio.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/winio.c b/src/winio.c
index 21860d46..90c33255 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1972,6 +1972,8 @@ void titlebar(const char *path)
 	/* The width that "Modified" would take up. */
     size_t offset = 0;
 	/* 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 = "";
 	/* What is shown before the path -- "File:", "DIR:", or "". */
     const char *state = "";
@@ -1996,7 +1998,7 @@ void titlebar(const char *path)
 
     /* Figure out the path, prefix and state strings. */
     if (inhelp)
-	state = _("Help");
+	branding = "";
 #ifndef DISABLE_BROWSER
     else if (path != NULL)
 	prefix = _("DIR:");
@@ -2018,7 +2020,7 @@ void titlebar(const char *path)
     }
 
     /* Determine the widths of the four elements, including their padding. */
-    verlen = strlenpt(BRANDING) + 3;
+    verlen = strlenpt(branding) + 3;
     prefixlen = strlenpt(prefix);
     if (prefixlen > 0)
 	prefixlen++;
@@ -2031,7 +2033,7 @@ void titlebar(const char *path)
 
     /* Only print the version message when there is room for it. */
     if (verlen + prefixlen + pathlen + pluglen + statelen <= COLS)
-	mvwaddstr(topwin, 0, 2, BRANDING);
+	mvwaddstr(topwin, 0, 2, branding);
     else {
 	verlen = 2;
 	/* If things don't fit yet, give up the placeholder. */
-- 
GitLab