gem-browse
gem-browse copied to clipboard
doesn't work in windows with a space in editor path
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.
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).