From b5776ac6983b53dca0dec87439122d77407a5498 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 27 Oct 2005 05:00:48 +0000
Subject: [PATCH] make prompt a static instead of a global, since it's only
 used in winio.c

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3054 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/global.c | 4 +---
 src/winio.c  | 7 +++++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/global.c b/src/global.c
index 3326e568..00dc0192 100644
--- a/src/global.c
+++ b/src/global.c
@@ -85,9 +85,7 @@ size_t quotelen;		/* strlen(quotestr) */
 char *backup_dir = NULL;	/* Backup directory. */
 #endif
 
-char *prompt = NULL;		/* Answer string for statusbar
-				 * questions. */
-char *answer = NULL;		/* Answer string for statusbar
+char *answer = NULL;		/* The answer string for statusbar
 				 * questions. */
 
 ssize_t tabsize = -1;		/* Our internal tabsize variable.  The
diff --git a/src/winio.c b/src/winio.c
index e395c008..816cef3f 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -38,12 +38,15 @@ static int *key_buffer = NULL;
 static size_t key_buffer_len = 0;
 				/* The length of the default keystroke
 				 * buffer. */
+static char *prompt = NULL;
+				/* The prompt string for statusbar
+				 * questions. */
+static size_t statusbar_x = (size_t)-1;
+				/* The cursor position in answer. */
 static int statusblank = 0;
 				/* The number of keystrokes left after
 				 * we call statusbar(), before we
 				 * actually blank the statusbar. */
-static size_t statusbar_x = (size_t)-1;
-				/* The cursor position in answer. */
 static bool disable_cursorpos = FALSE;
 				/* Should we temporarily disable
 				 * constant cursor position display? */
-- 
GitLab