mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 9.1.1646: MS-Windows: completion cannot handle implicit drive letters
Problem: MS-Windows: completion cannot handle implicit drive letters
Solution: Consider paths like \folder and /folder as absolute
(Miguel Barro).
closes: #17829
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Miguel Barro <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
59799f3afa
commit
a2f13bf782
@@ -479,13 +479,7 @@ handle_import(
|
||||
res = handle_import_fname(from_name, is_autoload, &sid);
|
||||
vim_free(from_name);
|
||||
}
|
||||
else if (mch_isFullName(tv.vval.v_string)
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
// On MS-Windows omitting the drive is still handled like an
|
||||
// absolute path, not using 'runtimepath'.
|
||||
|| *tv.vval.v_string == '/' || *tv.vval.v_string == '\\'
|
||||
#endif
|
||||
)
|
||||
else if (mch_isFullName(tv.vval.v_string))
|
||||
{
|
||||
// Absolute path: "/tmp/name.vim"
|
||||
res = handle_import_fname(tv.vval.v_string, is_autoload, &sid);
|
||||
|
||||
Reference in New Issue
Block a user