mirror of
https://github.com/neovim/neovim.git
synced 2026-04-22 07:15:34 +00:00
Windows: find_file_in_path: Handle absolute path. #4711
Originally in vim/vim.
This commit is contained in:
committed by
Justin M. Keyes
parent
5185b75f7e
commit
c72b60645c
@@ -1400,8 +1400,14 @@ find_file_in_path_option (
|
||||
&& (ff_file_to_find[2] == NUL
|
||||
|| vim_ispathsep(ff_file_to_find[2])))));
|
||||
if (vim_isAbsName(ff_file_to_find)
|
||||
/* "..", "../path", "." and "./path": don't use the path_option */
|
||||
// "..", "../path", "." and "./path": don't use the path_option
|
||||
|| rel_to_curdir
|
||||
#if defined(WIN32)
|
||||
// handle "\tmp" as absolute path
|
||||
|| vim_ispathsep(ff_file_to_find[0])
|
||||
// handle "c:name" as absolute path
|
||||
|| (ff_file_to_find[0] != NUL && ff_file_to_find[1] == ':')
|
||||
#endif
|
||||
) {
|
||||
/*
|
||||
* Absolute path, no need to use "path_option".
|
||||
|
||||
Reference in New Issue
Block a user