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:
parent
34ba04f184
commit
7556c5caa9
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user