Skip to content

Commit be6b83c

Browse files
committed
Merge pull request #114 from mxie/mx-fix-optional-prompt-arg
Check for a predefined command for prompt before executing
2 parents c56e3f7 + d21337e commit be6b83c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin/vimux.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ function! VimuxClearRunnerHistory()
131131
endif
132132
endfunction
133133

134-
function! VimuxPromptCommand(command, ...)
135-
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "),a:command)
134+
function! VimuxPromptCommand(...)
135+
let command = a:0 == 1 ? a:1 : ""
136+
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "), command)
136137
call VimuxRunCommand(l:command)
137138
endfunction
138139

0 commit comments

Comments
 (0)