diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-08-01 23:16:17 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-01 23:16:53 -0400 |
commit | dd7c7efcfb37342ccd9168977b2431d16de7b3cb (patch) | |
tree | 22fb3ae8dd192f9dc50053b02d33e76af73a6af1 /src/nvim/fileio.c | |
parent | d4396acedb213209aee4693e196f1952bbc88ff5 (diff) | |
parent | ea551044ea8a0de8e2f6937c9d083cecd2f67b99 (diff) | |
download | rneovim-dd7c7efcfb37342ccd9168977b2431d16de7b3cb.tar.gz rneovim-dd7c7efcfb37342ccd9168977b2431d16de7b3cb.tar.bz2 rneovim-dd7c7efcfb37342ccd9168977b2431d16de7b3cb.zip |
Merge #3099 glob() should return '.' and '..'
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index dee9680230..58e4873e00 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -415,14 +415,11 @@ readfile ( msg_scroll = TRUE; /* don't overwrite previous file message */ /* - * If the name ends in a path separator, we can't open it. Check here, - * because reading the file may actually work, but then creating the swap - * file may destroy it! Reported on MS-DOS and Win 95. * If the name is too long we might crash further on, quit here. */ if (fname != NULL && *fname != NUL) { p = fname + STRLEN(fname); - if (after_pathsep((char *)fname, (char *)p) || STRLEN(fname) >= MAXPATHL) { + if (STRLEN(fname) >= MAXPATHL) { filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0); msg_end(); msg_scroll = msg_save; |