Fix executable status detection
This commit is contained in:
parent
1a3e11664b
commit
8dec444fe9
@ -40,8 +40,9 @@ function! repl#erlang#open_repl() abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let l:repl = repl#get_filetype_repl('erlang')
|
let l:repl = repl#get_filetype_repl('erlang')
|
||||||
if !executable(l:repl['repl'])
|
let l:exec_name = split(l:repl['repl'], ' ')[0]
|
||||||
call repl#echo_error(printf("You don't have repl: '%s'", l:repl['repl']))
|
if !executable(l:exec_name)
|
||||||
|
call repl#echo_error(printf("You don't have repl: '%s'", l:exec_name))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
||||||
|
@ -11,8 +11,9 @@ function! repl#haskell#open_repl() abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let l:repl = repl#get_filetype_repl('haskell')
|
let l:repl = repl#get_filetype_repl('haskell')
|
||||||
if !executable(l:repl['repl'])
|
let l:exec_name = split(l:repl['repl'], ' ')[0]
|
||||||
call repl#echo_error(printf("You don't have repl: '%s'", l:repl['repl']))
|
if !executable(l:exec_name)
|
||||||
|
call repl#echo_error(printf("You don't have repl: '%s'", l:exec_name))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
||||||
|
@ -11,8 +11,9 @@ function! repl#python#open_repl() abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let l:repl = repl#get_filetype_repl('python')
|
let l:repl = repl#get_filetype_repl('python')
|
||||||
if !executable(l:repl['repl'])
|
let l:exec_name = split(l:repl['repl'], ' ')[0]
|
||||||
call repl#echo_error(printf("You don't have repl: '%s'", l:repl['repl']))
|
if !executable(l:exec_name)
|
||||||
|
call repl#echo_error(printf("You don't have repl: '%s'", l:exec_name))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
||||||
|
@ -10,8 +10,9 @@ function! repl#ruby#open_repl() abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let l:repl = repl#get_filetype_repl('ruby')
|
let l:repl = repl#get_filetype_repl('ruby')
|
||||||
if !executable(l:repl['repl'])
|
let l:exec_name = split(l:repl['repl'], ' ')[0]
|
||||||
call repl#echo_error(printf("You don't have repl: '%s'", l:repl['repl']))
|
if !executable(l:exec_name)
|
||||||
|
call repl#echo_error(printf("You don't have repl: '%s'", l:exec_name))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
|
||||||
|
Reference in New Issue
Block a user