Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix win project manager #1182

Merged
merged 2 commits into from
Dec 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion autoload/SpaceVim/layers/shell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
" default_shell
"

let s:SYSTEM = SpaceVim#api#import('system')

function! SpaceVim#layers#shell#plugins() abort
let plugins = []
if has('nvim')
Expand Down Expand Up @@ -69,7 +71,12 @@ function! s:open_default_shell() abort
if has('nvim')
exe 'terminal'
else
call term_start($SHELL, {'curwin' : 1, 'term_finish' : 'close'})
if s:SYSTEM.isWindows
let shell = empty($SHELL) ? 'cmd.exe' : $SHELL
else
let shell = empty($SHELL) ? 'bash' : $SHELL
endif
call term_start(shell, {'curwin' : 1, 'term_finish' : 'close'})
endif
let s:shell_win_nr = winnr()
let w:shell_layer_win = 1
Expand Down
2 changes: 1 addition & 1 deletion autoload/SpaceVim/plugins/projectmanager.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function! s:cache_project(prj) abort
if !has_key(s:project_paths, a:prj.path)
let s:project_paths[a:prj.path] = a:prj
let desc = '[' . a:prj.name . '] ' . a:prj.path
let cmd = 'call SpaceVim#plugins#projectmanager#open("' . a:prj.path . '")'
let cmd = "call SpaceVim#plugins#projectmanager#open('" . a:prj.path . "')"
call add(g:unite_source_menu_menus.Projects.command_candidates, [desc,cmd])
endif
endfunction
Expand Down