Skip to content

fix ElmRepl for 0.19 #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions autoload/elm.vim
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,15 @@ endf

" Open the elm repl in a subprocess.
function! elm#Repl() abort
" check for the elm-repl binary
if elm#util#CheckBin('elm-repl', 'http://elm-lang.org/install') ==# ''
" check for the elm binary, since elm-repl is now elm repl
if elm#util#CheckBin('elm', 'http://elm-lang.org/install') ==# ''
return
endif

if has('nvim')
term('elm-repl')
term('elm repl')
else
!elm-repl
!elm repl
endif
endf

Expand Down