Skip to content

Commit 59b1d28

Browse files
committed
Needs no argument rather than a blank argument
1 parent 784b283 commit 59b1d28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugin/vimux.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,10 @@ endfunction
177177
function! VimuxPromptCommand(...)
178178
let command = a:0 ==# 1 ? a:1 : ''
179179
if VimuxOption('VimuxCommandShell')
180-
let l:cancelreturn = 'shellcmd'
180+
let l:command = input(VimuxOption('VimuxPromptString'), command, 'shellcmd')
181181
else
182-
let l:cancelreturn = v:false
182+
let l:command = input(VimuxOption('VimuxPromptString'), command)
183183
endif
184-
let l:command = input(VimuxOption('VimuxPromptString'), command, l:cancelreturn)
185184
if VimuxOption('VimuxExpandCommand')
186185
let l:command = join(map(split(l:command, ' '), 'expand(v:val)'), ' ')
187186
endif

0 commit comments

Comments
 (0)