0
0
mirror of https://github.com/vim/vim.git synced 2025-08-26 20:03:41 -04:00

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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2025-02-23 09:56:10 +01:00 committed by Christian Brabandt
parent ed7d8e55ac
commit b8989fb860
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 6 additions and 4 deletions

View 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);

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1141,
/**/
1140,
/**/