nnn

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

commit 2f986253e4e29bc393644bcfad674e097c63d8c1
parent 256f0d008fe9d28699aebb0155ab31664c06d683
Author: Arun <engineerarun@gmail.com>
Date:   Tue, 23 Nov 2021 18:17:13 +0530

Merge pull request #1241 from luukvbaal/master

Guard open_with getreadline for picker
Diffstat:
Msrc/nnn.c | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -7519,10 +7519,13 @@ nochange: tmp = xreadline(tmp, messages[MSG_ARCHIVE_NAME]); break; case SEL_OPENWITH: -#ifdef NORL - tmp = xreadline(NULL, messages[MSG_OPEN_WITH]); -#else - tmp = getreadline(messages[MSG_OPEN_WITH]); +#ifndef NORL + if (g_state.picker) { +#endif + tmp = xreadline(NULL, messages[MSG_OPEN_WITH]); +#ifndef NORL + } else + tmp = getreadline(messages[MSG_OPEN_WITH]); #endif break; case SEL_NEW: