Commits

Tamas Kovacs committed 56d3059 Merge

Merge pull request #5 from elmart/master

Escape swank start command for osascript.

  • Participants
  • Parent commits bb8a921, 5009ba2

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