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

Check for a predefined command for prompt before executing
fix-tmux-next-3dot4
Ben Mills 10 years ago
commit be6b83cfa4

@ -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

Loading…
Cancel
Save