vim-rescript icon indicating copy to clipboard operation
vim-rescript copied to clipboard

Incorrect resource paths

Open ellbur opened this issue 2 years ago • 0 comments

For some reason, on my setup, the following code results in the wrong paths:

let g:rescript_bsc_exe = getcwd() . "/" . l:res_bin_dir . "/bsc.exe"
let g:rescript_bsb_exe = getcwd() . "/" . l:res_bin_dir . "/bsb.exe"

The path l:res_bin_dir is already absolute, so prepending getcwd() adds redundant directories to the front and makes the path wrong.

This change fixes the paths on my system: https://github.com/ellbur/vim-rescript/commit/b42b94e939c1827d8ca32d0bbc46f5340755e796

I don't know much about vimscript so I don't know if that would cause problems on other systems.

My system is: Linux (Manjaro), NeoVim 0.6.1.

ellbur avatar Mar 30 '22 00:03 ellbur