1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:30:05 +08:00

Fix repl for ruby

This commit is contained in:
wsdjeg 2017-12-12 13:46:38 +08:00
parent 34ba04f184
commit 7556c5caa9
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ endfunction
function! SpaceVim#layers#lang#ruby#config() abort
call SpaceVim#plugins#runner#reg_runner('ruby', 'ruby %s')
call SpaceVim#mapping#space#regesit_lang_mappings('ruby', funcref('s:language_specified_mappings'))
call SpaceVim#plugins#repl#reg('ruby', 'ruby')
call SpaceVim#plugins#repl#reg('ruby', 'irb')
endfunction
function! s:language_specified_mappings() abort

View File

@ -146,7 +146,7 @@ function! s:close() abort
let s:job_id = 0
endif
if s:bufnr != 0 && bufexists(s:bufnr)
exe 'bd' s:bufnr
exe 'bd ' s:bufnr
endif
endfunction

View File

@ -186,5 +186,5 @@ function! SpaceVim#plugins#runner#close() abort
if s:status.is_exit == 0
call s:JOB.close(s:job_id)
endif
exe 'bd' s:bufnr
exe 'bd ' s:bufnr
endfunction