]> Sergey Matveev's repositories - nnn.git/commitdiff
Support readline in open with
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 26 Apr 2019 20:23:41 +0000 (01:53 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 26 Apr 2019 20:23:41 +0000 (01:53 +0530)
src/nnn.c

index aa891c27cf777635877a70dcfbea2c8249d335df..c14f68cb246d183c45df4113c52ad7bc615f123a 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3757,7 +3757,14 @@ nochange:
                                tmp = xreadline(tmp, "archive name: ");
                                break;
                        case SEL_OPENWITH:
+#ifdef NORL
                                tmp = xreadline(NULL, "open with: ");
+#else
+                               presel = 0;
+                               tmp = getreadline("open with: ", path, ipath, &presel);
+                               if (presel == MSGWAIT)
+                                       goto nochange;
+#endif
                                break;
                        case SEL_NEW:
                                tmp = xreadline(NULL, "name/link suffix [@ for none]: ");