Skip to content

Commit 4080e36

Browse files
committed
System.Filepath: option check exits to do work
1 parent f3f0943 commit 4080e36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/vital/__vital__/System/Filepath.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let s:is_cygwin = has('win32unix')
1515
let s:is_mac = !s:is_windows && !s:is_cygwin
1616
\ && (has('mac') || has('macunix') || has('gui_macvim') ||
1717
\ (!isdirectory('/proc') && executable('sw_vers')))
18-
" windows expand follow do not need for file extention
18+
" windows expand follow do not need for file extension
1919
let s:is_case_tolerant = filereadable(expand('<sfile>:r') . '.VIM')
2020

2121
if s:is_windows
@@ -237,7 +237,7 @@ endfunction
237237

238238
if s:is_windows
239239
function! s:realpath(path) abort
240-
if exists('&shellslash') && &shellslash
240+
if exists('+shellslash') && &shellslash
241241
return s:unixpath(a:path)
242242
else
243243
return s:winpath(a:path)
@@ -280,7 +280,7 @@ function! s:contains(path, base) abort
280280
return pathlist[: baselistlen - 1] ==# baselist
281281
endfunction
282282

283-
if s:is_windows && exists('&completeslash')
283+
if s:is_windows && exists('+completeslash')
284284
function! s:expand(path) abort
285285
let backup_completeslash = &completeslash
286286
try

0 commit comments

Comments
 (0)