mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Show msg on invalid list input, remove dep
This commit is contained in:
parent
d38f4b13d4
commit
8735f11c58
|
@ -518,8 +518,8 @@ static char * const utils[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Common strings */
|
/* Common strings */
|
||||||
#define MSG_0_ENTRIES 0
|
#define MSG_INVALID_KEY 0
|
||||||
#define MSG_INVALID_KEY 1
|
#define MSG_0_ENTRIES 1
|
||||||
#define STR_TMPFILE 2
|
#define STR_TMPFILE 2
|
||||||
#define MSG_0_SELECTED 3
|
#define MSG_0_SELECTED 3
|
||||||
#define MSG_CANCEL 4
|
#define MSG_CANCEL 4
|
||||||
|
@ -565,8 +565,8 @@ static char * const utils[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char * const messages[] = {
|
static const char * const messages[] = {
|
||||||
"0 entries",
|
|
||||||
"invalid key",
|
"invalid key",
|
||||||
|
"0 entries",
|
||||||
"/.nnnXXXXXX",
|
"/.nnnXXXXXX",
|
||||||
"0 selected",
|
"0 selected",
|
||||||
"cancelled",
|
"cancelled",
|
||||||
|
@ -7321,7 +7321,7 @@ malloc_2:
|
||||||
free(paths[i]);
|
free(paths[i]);
|
||||||
malloc_1:
|
malloc_1:
|
||||||
if (msgnum) {
|
if (msgnum) {
|
||||||
if (g_state.pluginit) {
|
if (home) { /* We are past init stage */
|
||||||
printmsg(messages[msgnum]);
|
printmsg(messages[msgnum]);
|
||||||
xdelay(XDELAY_INTERVAL_MS);
|
xdelay(XDELAY_INTERVAL_MS);
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue