]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1141: Misplaced comment in readfile() v9.1.1141
authorzeertzjq <zeertzjq@outlook.com>
Sun, 23 Feb 2025 08:56:10 +0000 (09:56 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 23 Feb 2025 08:56:10 +0000 (09:56 +0100)
Problem:  Misplaced comment in readfile().
          (after v9.1.1139)
Solution: Move the comment above S_ISDIR().
          (zeertzjq)

closes: #16714

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/fileio.c
src/version.c

index 24a01a010c27def700a8e87e51b9ff25734cc5e3..0ccfd2d99d1f267e83417755a01d76f2675e089e 100644 (file)
@@ -368,10 +368,6 @@ readfile(
     }
 #if defined(UNIX) || defined(VMS)
     if (!read_stdin && fname != NULL)
-       /*
-        * On Unix it is possible to read a directory, so we have to
-        * check for it before the mch_open().
-        */
        perm = mch_getperm(fname);
 #endif
 
@@ -387,6 +383,10 @@ readfile(
 # endif
                                                )
        {
+           /*
+            * On Unix it is possible to read a directory, so we have to
+            * check for it before the mch_open().
+            */
            if (S_ISDIR(perm))
            {
                filemess(curbuf, fname, (char_u *)_(msg_is_a_directory), 0);
index bd7b1f68d82ee1af4a6148e0edfdd38a710d3501..df5cef169f7127f56458d6b996a13674ca232832 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1141,
 /**/
     1140,
 /**/