Needs no argument rather than a blank argument

fix-tmux-next-3dot4
jaspertandy 3 years ago
parent 784b2834c7
commit 59b1d28f80

@ -177,11 +177,10 @@ endfunction
function! VimuxPromptCommand(...)
let command = a:0 ==# 1 ? a:1 : ''
if VimuxOption('VimuxCommandShell')
let l:cancelreturn = 'shellcmd'
let l:command = input(VimuxOption('VimuxPromptString'), command, 'shellcmd')
else
let l:cancelreturn = v:false
let l:command = input(VimuxOption('VimuxPromptString'), command)
endif
let l:command = input(VimuxOption('VimuxPromptString'), command, l:cancelreturn)
if VimuxOption('VimuxExpandCommand')
let l:command = join(map(split(l:command, ' '), 'expand(v:val)'), ' ')
endif

Loading…
Cancel
Save