summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun <engineerarun@gmail.com>2021-11-23 18:17:13 +0530
committerGitHub <noreply@github.com>2021-11-23 18:17:13 +0530
commit2f986253e4e29bc393644bcfad674e097c63d8c1 (patch)
tree47625b7d570a83e48c469b2d6df4374d3993bec3
parent256f0d008fe9d28699aebb0155ab31664c06d683 (diff)
parent1a6d54515bec2b7cd28d4eb88ea7aa40c55700a7 (diff)
Merge pull request #1241 from luukvbaal/master
Guard open_with getreadline for picker
-rw-r--r--src/nnn.c11
1 files changed, 7 insertions, 4 deletions
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: