SlimvSwankLoader function quotes both of g:slimv_lisp and the argument of --load argument (or -l or -i, etc), but it did not work as it is expected in the case of screen. This commit fixes SlimvSwankCommand and ensures to properly quote them by adopting single quotes to quote each screen command.
If the path of slime directory included a whitespace, then what SlimvSwankLoader returned was something like:
Here, it is assumed that let g:slimv_impl = 'sbcl' and let g:slimv_lisp='/usr/bin/sbcl' are written in .vimrc.
Finally, SlimvSwankCommand function returns following command string if vim is run on screen.
SlimvSwankLoader
function quotes both ofg:slimv_lisp
and the argument of --load argument (or -l or -i, etc), but it did not work as it is expected in the case of screen. This commit fixesSlimvSwankCommand
and ensures to properly quote them by adopting single quotes to quote each screen command.If the path of
slime
directory included a whitespace, then whatSlimvSwankLoader
returned was something like:Here, it is assumed that
let g:slimv_impl = 'sbcl'
andlet g:slimv_lisp='/usr/bin/sbcl'
are written in .vimrc. Finally,SlimvSwankCommand
function returns following command string if vim is run on screen.For clarity, the commands executed by
screen -X eval
is as follows.But the commands we truly want should be next one.
This commit fixes the string returned by
SlimvSwankLoader
in this situation. The fixed return value is as follows.