From f1bdce4e69a29fcc9e9073e7aa79cd24ed1c5c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20M=C3=A5rtensson?= Date: Wed, 11 Apr 2018 16:16:36 +0200 Subject: [PATCH] add support for not providing extra args to jdb#attach --- autoload/vebugger/jdb.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/vebugger/jdb.vim b/autoload/vebugger/jdb.vim index 494d5ff..29d2dde 100644 --- a/autoload/vebugger/jdb.vim +++ b/autoload/vebugger/jdb.vim @@ -38,9 +38,10 @@ function! vebugger#jdb#start(entryClass,args) return l:debugger endfunction -function! vebugger#jdb#attach(address,args) - let a:args.attach = a:address - call vebugger#jdb#start('', a:args) +function! vebugger#jdb#attach(address, ...) + let l:args = a:0 ? a:{1} : {} + let l:args.attach = a:address + call vebugger#jdb#start('', l:args) endfunction function! vebugger#jdb#_readProgramOutput(pipeName,line,readResult,debugger) dict