From 66b253e9ff21070b50d3603e229a71ab812eea23 Mon Sep 17 00:00:00 2001 From: Shidong Wang Date: Thu, 21 Oct 2021 23:11:41 +0800 Subject: [PATCH] fix(core): fix neovim-qt welcome page --- autoload/SpaceVim.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 030d6e7d7..de69e6da2 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -1483,13 +1483,13 @@ endfunction " 1 : dir " 2 : default arguments function! s:parser_argv() abort - if !exists('v:argv') || index(v:argv, '--embed') !=# -1 - \ || len(v:argv) >=# 3 - " if there is no arguments - " or use embed nvim + if !exists('v:argv') + \ || (len(v:argv) >=# 3 && index(v:argv, '--embed') ==# -1) " or do not support 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] elseif v:argv[1] =~# '/$' let f = fnamemodify(expand(v:argv[1]), ':p')