Check for a predefined command for prompt before executing

VimuxPromptCommand was accepting 1 or more arguments instead of 0 or more. Vim
will complain about this despite nargs being set.
fix-tmux-next-3dot4
Melissa Xie 10 years ago
parent c56e3f79e1
commit d21337e01a

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