From 59b1d28f80e7aa78efc08faad030db4d34befd83 Mon Sep 17 00:00:00 2001 From: jaspertandy Date: Wed, 10 Mar 2021 14:16:02 +0000 Subject: [PATCH] Needs no argument rather than a blank argument --- plugin/vimux.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index c6cd9c9..a269e5c 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -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