]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #264
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 16 May 2019 13:29:20 +0000 (18:59 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 22 May 2019 03:18:44 +0000 (08:48 +0530)
src/nnn.c

index 2731e13413e1e4611734eeb5b1918f39843d9c9b..2a7da5ed07b9647353ea9f9d18c69f65bd8b9334 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -832,7 +832,7 @@ static bool cpsafe(void)
 
        /* Fail if selection file path isn't accessible */
        if (access(g_cppath, R_OK | W_OK) == -1) {
-               printmsg("check selection file permission");
+               errno == ENOENT ? printmsg(messages[NONE_SELECTED]) : printwarn(NULL);
                return FALSE;
        }