From: Luuk van Baal <luukvbaal@gmail.com> Date: Tue, 23 Nov 2021 12:11:42 +0000 (+0100) Subject: Guard open_with getreadline with for picker X-Git-Tag: v4.4~1^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1a6d54515bec2b7cd28d4eb88ea7aa40c55700a7;p=nnn.git Guard open_with getreadline with for picker fix luukvbaal/nnn.nvim#25 --- diff --git a/src/nnn.c b/src/nnn.c index 6bc1d5e5..f8ab2d52 100644 --- 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: