commit 7b7252dd3256da50ed622240849015d80d49866c
parent bc572df55a35cc738466996abe26339fc5acaeda
Author: KlzXS <azszwymmvqdi@yahoo.com>
Date: Fri, 24 Apr 2020 16:56:09 +0200
Fix picker and list mode conflict (#533)
* Fix picker and list mode conflict
* Comment the change
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -6827,6 +6827,10 @@ int main(int argc, char *argv[])
}
}
+ /* Prevent picker and list mode conflict */
+ if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
+ exit(1);
+
home = getenv("HOME");
if (!home) {
fprintf(stderr, "set HOME\n");