Escape commands passed in via SendCommand function

This commit is contained in:
Chris Toomey 2012-11-24 10:10:44 -05:00
parent 0565d25a69
commit b153665259

View File

@ -5,6 +5,7 @@
" TODO: create pane if not already available when running sendcommand " TODO: create pane if not already available when running sendcommand
" TODO: reattach pane rather than create if s:detach_window is set " TODO: reattach pane rather than create if s:detach_window is set
" TODO: normalize naming, 'runner' not 'pane' " TODO: normalize naming, 'runner' not 'pane'
" TODO: update the clear sequence to use '^U^L'
function! s:InitVariable(var, value) function! s:InitVariable(var, value)
if !exists(a:var) if !exists(a:var)
@ -243,7 +244,8 @@ function! s:DefineKeymaps()
endfunction endfunction
function! VTRSendCommand(command) function! VTRSendCommand(command)
call s:SendKeys(a:command) let escaped_command = shellescape(a:command)
call s:SendKeys(escaped_command)
endfunction endfunction
call s:InitializeVariables() call s:InitializeVariables()