From: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 6 Mar 2021 06:50:14 +0000 (+0530)
Subject: Have a distinct unused msg for index 0
X-Git-Tag: v3.6~8
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3387f0a6ac41bf7a96f461ca62df4190f6b853f9;p=nnn.git

Have a distinct unused msg for index 0
---

diff --git a/src/nnn.c b/src/nnn.c
index 365668ef..6783c9d7 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -516,7 +516,7 @@ static char * const utils[] = {
 };
 
 /* Common strings */
-#define MSG_INVALID_KEY 0
+#define MSG_ZERO 0 /* Unused */
 #define MSG_0_ENTRIES 1
 #define STR_TMPFILE 2
 #define MSG_0_SELECTED 3
@@ -557,12 +557,13 @@ static char * const utils[] = {
 #define MSG_LAZY 38
 #define MSG_FIRST 39
 #define MSG_RM_TMP 40
+#define MSG_INVALID_KEY 41
 #ifndef DIR_LIMITED_SELECTION
-#define MSG_DIR_CHANGED 41 /* Must be the last entry */
+#define MSG_DIR_CHANGED 42 /* Must be the last entry */
 #endif
 
 static const char * const messages[] = {
-	"invalid key",
+	"",
 	"0 entries",
 	"/.nnnXXXXXX",
 	"0 selected",
@@ -603,6 +604,7 @@ static const char * const messages[] = {
 	"unmount failed! try lazy?",
 	"first file (\')/char?",
 	"remove tmp file?",
+	"invalid key",
 #ifndef DIR_LIMITED_SELECTION
 	"dir changed, range sel off", /* Must be the last entry */
 #endif