add shellslash handling
This commit is contained in:
parent
1f61fb4f07
commit
81a7101522
|
@ -33,6 +33,10 @@ function! s:start() abort
|
||||||
if get(g:, 'startify_unlisted_buffer', 1)
|
if get(g:, 'startify_unlisted_buffer', 1)
|
||||||
setlocal nobuflisted
|
setlocal nobuflisted
|
||||||
endif
|
endif
|
||||||
|
if exists('+shellslash')
|
||||||
|
let old_ssl = &shellslash
|
||||||
|
set noshellslash
|
||||||
|
endif
|
||||||
|
|
||||||
call append('$', [' startify>', '', ' [e] <empty buffer>'])
|
call append('$', [' startify>', '', ' [e] <empty buffer>'])
|
||||||
let cnt = 0
|
let cnt = 0
|
||||||
|
@ -91,6 +95,9 @@ function! s:start() abort
|
||||||
autocmd startify CursorMoved <buffer> call cursor(line('.') < 4 ? 4 : 0, 5)
|
autocmd startify CursorMoved <buffer> call cursor(line('.') < 4 ? 4 : 0, 5)
|
||||||
autocmd startify BufLeave <buffer> autocmd! startify *
|
autocmd startify BufLeave <buffer> autocmd! startify *
|
||||||
|
|
||||||
|
if exists('old_ssl')
|
||||||
|
let &shellslash = old_ssl
|
||||||
|
endif
|
||||||
call cursor(6, 5)
|
call cursor(6, 5)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue