Commits

Eliseo Martínez  committed 5009ba2

Fix #4: Scheme builtin swank not launching.

Problem : 'scheme_builtin_swank' set to 1 but swank server not
launching.
Solution: Properly escape autogenerated swank start command.

  • Participants
  • Parent commits bb8a921

Comments (0)

Files changed (1)

File ftplugin/slimv.vim

                     let path2as = globpath( &runtimepath, 'ftplugin/**/iterm.applescript')
                     return '!' . path2as . ' ' . cmd
                 else
-                    return '!osascript -e "tell application \"Terminal\" to do script \"' . cmd . '\""'
+                    " doubles quotes within 'cmd' need to become '\\\"'
+                    return '!osascript -e "tell application \"Terminal\" to do script \"' . escape(escape(cmd, '"'), '\"') . '\""'
                 endif 
         elseif $STY != ''
             " GNU screen under Linux