nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8735f11c58f94af6a6e7be3051c5811c0ff166ae
parent d38f4b13d422963b06b4fb92df771aab154539e0
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 18 Nov 2020 23:40:23 +0530

Show msg on invalid list input, remove dep

Diffstat:
Msrc/nnn.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -518,8 +518,8 @@ static char * const utils[] = { }; /* Common strings */ -#define MSG_0_ENTRIES 0 -#define MSG_INVALID_KEY 1 +#define MSG_INVALID_KEY 0 +#define MSG_0_ENTRIES 1 #define STR_TMPFILE 2 #define MSG_0_SELECTED 3 #define MSG_CANCEL 4 @@ -565,8 +565,8 @@ static char * const utils[] = { #endif static const char * const messages[] = { - "0 entries", "invalid key", + "0 entries", "/.nnnXXXXXX", "0 selected", "cancelled", @@ -7321,7 +7321,7 @@ malloc_2: free(paths[i]); malloc_1: if (msgnum) { - if (g_state.pluginit) { + if (home) { /* We are past init stage */ printmsg(messages[msgnum]); xdelay(XDELAY_INTERVAL_MS); } else