Closed sanwv closed 9 years ago
add
execute 'cd -'
Where are you getting those lines from? For me, it's
function! browserlink#startBrowserlink()
if has("win32")
call system("cd " . s:path . "/../browserlink && ./start.bat")
else
echo system("cd " . s:path . "/../browserlink && node browserlink.js &")
endif
endfunction
Which will spawn a new shell and change the directory for that shell. When I execute :echo system('cd /some/other/dir')
, it doesn't change the path I was previously working in.
browserlink.vim/autoload/browserlink.vim#L37
function! browserlink#startBrowserlink()
if has("win32")
execute 'cd' fnameescape(s:path . "/browserlink")
call system("./start.bat")
else
execute 'cd' fnameescape(s:path . "/browserlink")
call system("node browserlink.js &")
endif
endfunction
Ah, interesting. The version I have checked out on my machine is behind HEAD. I'll get this fixed for you, thanks for reporting it!
Updated, does this fix it for you?
resolved,good!👍
after start the service need back previous directory