Skip to content

Commit b42b94e

Browse files
author
Owen Healy
committed
For some reason this prefix breaks on my setup
1 parent 6a04977 commit b42b94e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/rescript.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ function! rescript#UpdateProjectEnv()
3838
else
3939
" Here we are handling a project that is based on the rescript npm package
4040
" This package only uses a rescript.exe, no bsc, nor bsb
41-
let g:rescript_exe = getcwd() . "/" . l:res_bin_dir . "/rescript.exe"
41+
let g:rescript_exe = l:res_bin_dir . "/rescript.exe"
4242
endif
4343

4444
" These variables are only used in legacy mode (bs-platform based projects)
45-
let g:rescript_bsc_exe = getcwd() . "/" . l:res_bin_dir . "/bsc.exe"
46-
let g:rescript_bsb_exe = getcwd() . "/" . l:res_bin_dir . "/bsb.exe"
45+
let g:rescript_bsc_exe = l:res_bin_dir . "/bsc.exe"
46+
let g:rescript_bsb_exe = l:res_bin_dir . "/bsb.exe"
4747

4848
" Note that this doesn't find bsconfig when the editor was started without a
4949
" specific file within the project
50-
let g:rescript_project_config = getcwd() . "/" . findfile("bsconfig.json", ".;")
50+
let g:rescript_project_config = findfile("bsconfig.json", ".;")
5151

5252
" Try to find the nearest .git folder instead
5353
if g:rescript_project_config == ""

0 commit comments

Comments
 (0)