Fix use of REPL root

Closes #13.
This commit is contained in:
Tim Pope 2012-12-10 14:50:00 -05:00
parent bcaa71ae7c
commit 8b13cb2fe8

View File

@ -236,9 +236,8 @@ function! s:Connect(arg)
let path = exists('b:java_root') ? b:java_root : fnamemodify(expand('%'), ':p:s?.*\zs[\/]src[\/].*??') let path = exists('b:java_root') ? b:java_root : fnamemodify(expand('%'), ':p:s?.*\zs[\/]src[\/].*??')
let root = input('Path to root of project: ', path, 'dir') let root = input('Path to root of project: ', path, 'dir')
if root !=# '' if root !=# ''
let s:repls[root] = client let s:repl_paths[root] = client
endif endif
echo "\n"
return '' return ''
endfunction endfunction