From f7aa4ed32456c7416383b9ce42a257af375faa0a Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 17 Jul 2021 13:09:33 +0530 Subject: [PATCH] Add macro for prompt --- src/nnn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index a4fab4da..f103eb78 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -170,6 +170,7 @@ #define CASE ':' #define MSGWAIT '$' #define SELECT ' ' +#define PROMPT ">>> " #define REGEX_MAX 48 #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 */ @@ -5206,10 +5207,10 @@ static bool prompt_run(const char *current) #ifndef NORL if (g_state.picker) { #endif - tmp = xreadline(NULL, ">>> "); + tmp = xreadline(NULL, PROMPT); #ifndef NORL } else - tmp = getreadline("\n>>> "); + tmp = getreadline("\n"PROMPT); #endif if (tmp && *tmp) { // NOLINT ret = TRUE;