Skip to content

Commit

Permalink
Merge pull request #1241 from luukvbaal/master
Browse files Browse the repository at this point in the history
Guard open_with getreadline for picker
  • Loading branch information
jarun authored Nov 23, 2021
2 parents 256f0d0 + 1a6d545 commit 2f98625
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -7519,10 +7519,13 @@ static bool browse(char *ipath, const char *session, int pkey)
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:
Expand Down

0 comments on commit 2f98625

Please sign in to comment.