Guard open_with getreadline with for picker

fix luukvbaal/nnn.nvim#25
This commit is contained in:
Luuk van Baal 2021-11-23 13:11:42 +01:00
parent 256f0d008f
commit 1a6d54515b
1 changed files with 7 additions and 4 deletions

View File

@ -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: