mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
win: getftype(symlink) returns 'link'
Vim doesn't detect symlinks correctly so stick with Neovim's behaviour.
This commit is contained in:
@@ -4208,8 +4208,7 @@ getftype({fname}) *getftype()*
|
|||||||
getftype("/home")
|
getftype("/home")
|
||||||
< Note that a type such as "link" will only be returned on
|
< Note that a type such as "link" will only be returned on
|
||||||
systems that support it. On some systems only "dir" and
|
systems that support it. On some systems only "dir" and
|
||||||
"file" are returned. On MS-Windows a symbolic link to a
|
"file" are returned.
|
||||||
directory returns "dir" instead of "link".
|
|
||||||
|
|
||||||
*getline()*
|
*getline()*
|
||||||
getline({lnum} [, {end}])
|
getline({lnum} [, {end}])
|
||||||
|
@@ -86,7 +86,7 @@ func Test_win32_symlink_dir()
|
|||||||
let res = system('dir C:\Users /a')
|
let res = system('dir C:\Users /a')
|
||||||
if match(res, '\C<SYMLINKD> *All Users') >= 0
|
if match(res, '\C<SYMLINKD> *All Users') >= 0
|
||||||
" Get the filetype of the symlink.
|
" 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
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
Reference in New Issue
Block a user