Skip to content

Commit b8989fb

Browse files
zeertzjqchrisbra
authored andcommitted
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>
1 parent ed7d8e5 commit b8989fb

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/fileio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,6 @@ readfile(
368368
}
369369
#if defined(UNIX) || defined(VMS)
370370
if (!read_stdin && fname != NULL)
371-
/*
372-
* On Unix it is possible to read a directory, so we have to
373-
* check for it before the mch_open().
374-
*/
375371
perm = mch_getperm(fname);
376372
#endif
377373

@@ -387,6 +383,10 @@ readfile(
387383
# endif
388384
)
389385
{
386+
/*
387+
* On Unix it is possible to read a directory, so we have to
388+
* check for it before the mch_open().
389+
*/
390390
if (S_ISDIR(perm))
391391
{
392392
filemess(curbuf, fname, (char_u *)_(msg_is_a_directory), 0);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1141,
707709
/**/
708710
1140,
709711
/**/

0 commit comments

Comments
 (0)