Skip to content

Commit 809fd38

Browse files
tsuyoshichoMillylambdalisue
committed
System.Filepath: fix review point
Co-authored-by: Milly <[email protected]> Co-authored-by: Alisue <[email protected]>
1 parent 4080e36 commit 809fd38

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

autoload/vital/__vital__/System/Filepath.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ function! s:contains(path, base) abort
280280
return pathlist[: baselistlen - 1] ==# baselist
281281
endfunction
282282

283-
if s:is_windows && exists('+completeslash')
283+
if exists('+completeslash')
284+
" completeslash bug in Windows and specific version range (Vim 8.1.1769 - Vim 8.2.1746)
284285
function! s:expand(path) abort
285286
let backup_completeslash = &completeslash
286287
try

test/System/Filepath.vimspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ Describe System.Filepath
124124

125125
Describe .expand_home()
126126
if s:is_windows
127-
It [windows] non home path arre no expanded, there are same.
127+
It [windows] non home path are no expanded, there are same.
128128
let path = 'C:/Hoge'
129129
let ret = FP.expand_home(path)
130130
Assert Equals(ret, path)
131131
End
132132
else
133-
It [unix] non home path arre no expanded, there are same.
133+
It [unix] non home path are no expanded, there are same.
134134
let path = '/Hoge'
135135
let ret = FP.expand_home(path)
136136
Assert Equals(ret, path)

0 commit comments

Comments
 (0)