src/nnn.c | 4 ++++ diff --git a/src/nnn.c b/src/nnn.c index e00d0d0a42ec74a64f902ffcbf0600d0a8abf391..6d953b84572f32cac1ddf55d9a2dbe218f2ffda2 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3215,6 +3215,10 @@ /* Exit if parent has exited */ if (getppid() == 1) _exit(0); + /* Check if CWD is deleted to avoid hang, bad idea */ + //if (access(path, F_OK)) + // return; + sel = nextsel(presel); if (presel) presel = 0;