Mercurial > vim
diff src/fileio.c @ 7657:9c5e8254ea6b v7.4.1128
commit https://github.com/vim/vim/commit/203258c3ad2966cc9d08b3805b103333988b30b7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 22:15:16 2016 +0100
patch 7.4.1128
Problem: MS-Windows: delete() does not recognize junctions.
Solution: Add mch_isrealdir() for MS-Windows. Update mch_is_symbolic_link().
(Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jan 2016 22:30:05 +0100 |
parents | b44fc33ef92a |
children | a1e71a01dbd6 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -7297,14 +7297,10 @@ delete_recursive(char_u *name) /* A symbolic link to a directory itself is deleted, not the directory it * points to. */ if ( -# if defined(WIN32) - mch_isdir(name) && !mch_is_symbolic_link(name) +# if defined(UNIX) || defined(WIN32) + mch_isrealdir(name) # else -# ifdef UNIX - mch_isrealdir(name) -# else mch_isdir(name) -# endif # endif ) {