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

View file

@ -7519,9 +7519,12 @@ nochange:
tmp = xreadline(tmp, messages[MSG_ARCHIVE_NAME]); tmp = xreadline(tmp, messages[MSG_ARCHIVE_NAME]);
break; break;
case SEL_OPENWITH: case SEL_OPENWITH:
#ifdef NORL #ifndef NORL
if (g_state.picker) {
#endif
tmp = xreadline(NULL, messages[MSG_OPEN_WITH]); tmp = xreadline(NULL, messages[MSG_OPEN_WITH]);
#else #ifndef NORL
} else
tmp = getreadline(messages[MSG_OPEN_WITH]); tmp = getreadline(messages[MSG_OPEN_WITH]);
#endif #endif
break; break;