mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
fix(core): fix neovim-qt welcome page
This commit is contained in:
parent
7f0b6651a4
commit
66b253e9ff
@ -1483,13 +1483,13 @@ endfunction
|
|||||||
" 1 : dir
|
" 1 : dir
|
||||||
" 2 : default arguments
|
" 2 : default arguments
|
||||||
function! s:parser_argv() abort
|
function! s:parser_argv() abort
|
||||||
if !exists('v:argv') || index(v:argv, '--embed') !=# -1
|
if !exists('v:argv')
|
||||||
\ || len(v:argv) >=# 3
|
\ || (len(v:argv) >=# 3 && index(v:argv, '--embed') ==# -1)
|
||||||
" if there is no arguments
|
|
||||||
" or use embed nvim
|
|
||||||
" or do not support v:argv
|
" or do not support v:argv
|
||||||
return [2, get(v:, 'argv', ['failed to get v:argv'])]
|
return [2, get(v:, 'argv', ['failed to get v:argv'])]
|
||||||
elseif len(v:argv) ==# 1
|
elseif len(v:argv) ==# 1 || index(v:argv, '--embed') !=# -1
|
||||||
|
" if there is no arguments
|
||||||
|
" or use embed nvim
|
||||||
return [0]
|
return [0]
|
||||||
elseif v:argv[1] =~# '/$'
|
elseif v:argv[1] =~# '/$'
|
||||||
let f = fnamemodify(expand(v:argv[1]), ':p')
|
let f = fnamemodify(expand(v:argv[1]), ':p')
|
||||||
|
Loading…
Reference in New Issue
Block a user