Merge pull request #114 from mxie/mx-fix-optional-prompt-arg

Check for a predefined command for prompt before executing
This commit is contained in:
Ben Mills 2014-09-03 11:14:40 -07:00
commit be6b83cfa4

View File

@ -131,8 +131,9 @@ function! VimuxClearRunnerHistory()
endif
endfunction
function! VimuxPromptCommand(command, ...)
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "),a:command)
function! VimuxPromptCommand(...)
let command = a:0 == 1 ? a:1 : ""
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "), command)
call VimuxRunCommand(l:command)
endfunction