patch 9.1.1141: Misplaced comment in readfile()

Commit: 
https://github.com/vim/vim/commit/b8989fb860808bbcb0e90b2ba597f66a092277d8
Author: zeertzjq <zeert...@outlook.com>
Date:   Sun Feb 23 09:56:10 2025 +0100

    patch 9.1.1141: Misplaced comment in readfile()
    
    Problem:  Misplaced comment in readfile().
              (after v9.1.1139)
    Solution: Move the comment above S_ISDIR().
              (zeertzjq)
    
    closes: #16714
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/fileio.c b/src/fileio.c
index 24a01a010..0ccfd2d99 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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);
diff --git a/src/version.c b/src/version.c
index bd7b1f68d..df5cef169 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1141,
 /**/
     1140,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tm7qF-0080hR-Qg%40256bit.org.

Raspunde prin e-mail lui