gem-browse icon indicating copy to clipboard operation
gem-browse copied to clipboard

doesn't work in windows with a space in editor path

Open gregors opened this issue 11 years ago • 1 comments

If my vim installation lives at: "C:\Program Files (x86)\Vim\vim73\vim.exe"

all I see is "ERROR: Problemw with editor..."

Looking at "unless system(*editor.split(/\s+/) + args)" in command.rb

I'm assuming the split is causing the issue. Also, would you please explain the splat operator in front of editor. I'm not understanding the usage.

gregors avatar Feb 27 '14 21:02 gregors

it's designed such that an editor of gvim -f will expand to system("gvim", "-f", "arg"). That use case is mutually exclusive with spaces in the editor path, but an easy workaround might be C:\PROGRA~1\... (or ~2 or whatever).

tpope avatar Feb 27 '14 21:02 tpope