win: getftype(symlink) returns 'link'

Vim doesn't detect symlinks correctly so stick with Neovim's behaviour.
This commit is contained in:
Jan Edmund Lazo
2018-04-06 14:00:38 -04:00
parent 49e86cebf0
commit 7c8122f36d
2 changed files with 2 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ func Test_win32_symlink_dir()
let res = system('dir C:\Users /a')
if match(res, '\C<SYMLINKD> *All Users') >= 0
" Get the filetype of the symlink.
call assert_equal('dir', getftype('C:\Users\All Users'))
call assert_equal('link', getftype('C:\Users\All Users'))
endif
endif
endfunc