Merge branch 'master' into devel

This commit is contained in:
Junegunn Choi 2024-05-28 23:19:26 +09:00 committed by GitHub
commit a8f3a0dd59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -330,7 +330,7 @@ function! s:common_sink(action, lines) abort
if has('win32unix') && item !~ '/'
let item = substitute(item, '\', '/', 'g')
end
if item[0] != '~' && item !~ (s:is_win ? '^[A-Z]:\' : '^/')
if item[0] != '~' && item !~ (s:is_win ? '^\([A-Z]:\)\?\' : '^/')
let sep = s:is_win ? '\' : '/'
let item = join([cwd, item], cwd[len(cwd)-1] == sep ? '' : sep)
endif