forked from Archives/vimux
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:
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…
Reference in New Issue
Block a user