diff options
-rw-r--r-- | src/nvim/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 7c41c84838..b79ecf22d7 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -355,8 +355,6 @@ int readfile(char *fname, char *sfname, linenr_T from, linenr_T lines_to_skip, if (!read_stdin && fname != NULL) { perm = os_getperm(fname); - // On Unix it is possible to read a directory, so we have to - // check for it before os_open(). } #ifdef OPEN_CHR_FILES @@ -372,6 +370,8 @@ int readfile(char *fname, char *sfname, linenr_T from, linenr_T lines_to_skip, && !(IS_CHR_DEV(perm, fname)) // ... or a character special file named /dev/fd/<n> ) { + // On Unix it is possible to read a directory, so we have to + // check for it before os_open(). if (S_ISDIR(perm)) { if (!silent) { filemess(curbuf, fname, _(msg_is_a_directory)); |