mirror of
https://github.com/jarun/nnn.git
synced 2025-01-24 17:56:41 +00:00
Add macro for prompt
This commit is contained in:
parent
0ef34a930c
commit
f7aa4ed324
|
@ -170,6 +170,7 @@
|
||||||
#define CASE ':'
|
#define CASE ':'
|
||||||
#define MSGWAIT '$'
|
#define MSGWAIT '$'
|
||||||
#define SELECT ' '
|
#define SELECT ' '
|
||||||
|
#define PROMPT ">>> "
|
||||||
#define REGEX_MAX 48
|
#define REGEX_MAX 48
|
||||||
#define ENTRY_INCR 64 /* Number of dir 'entry' structures to allocate per shot */
|
#define ENTRY_INCR 64 /* Number of dir 'entry' structures to allocate per shot */
|
||||||
#define NAMEBUF_INCR 0x800 /* 64 dir entries at once, avg. 32 chars per file name = 64*32B = 2KB */
|
#define NAMEBUF_INCR 0x800 /* 64 dir entries at once, avg. 32 chars per file name = 64*32B = 2KB */
|
||||||
|
@ -5206,10 +5207,10 @@ static bool prompt_run(const char *current)
|
||||||
#ifndef NORL
|
#ifndef NORL
|
||||||
if (g_state.picker) {
|
if (g_state.picker) {
|
||||||
#endif
|
#endif
|
||||||
tmp = xreadline(NULL, ">>> ");
|
tmp = xreadline(NULL, PROMPT);
|
||||||
#ifndef NORL
|
#ifndef NORL
|
||||||
} else
|
} else
|
||||||
tmp = getreadline("\n>>> ");
|
tmp = getreadline("\n"PROMPT);
|
||||||
#endif
|
#endif
|
||||||
if (tmp && *tmp) { // NOLINT
|
if (tmp && *tmp) { // NOLINT
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue