瀏覽代碼

Fix #168

master
Arun Prakash Jana 6 年之前
父節點
當前提交
9eec60f8b1
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      src/nnn.c

+ 6
- 6
src/nnn.c 查看文件

@@ -3548,12 +3548,6 @@ int main(int argc, char *argv[])
char *ipath = NULL;
int opt;

/* Confirm we are in a terminal */
if (!isatty(0) || !isatty(1)) {
fprintf(stderr, "stdin or stdout is not a tty\n");
return 1;
}

while ((opt = getopt(argc, argv, "Slib:Cep:vh")) != -1) {
switch (opt) {
case 'S':
@@ -3602,6 +3596,12 @@ int main(int argc, char *argv[])
}
}

/* Confirm we are in a terminal */
if (!isatty(0) || !isatty(1)) {
fprintf(stderr, "stdin or stdout is not a tty\n");
return 1;
}

/* Get the context colors; copier used as tmp var */
if (cfg.showcolor) {
copier = getenv("NNN_CONTEXT_COLORS");


Loading…
取消
儲存