forked from aniani/vim
patch 9.1.0599: Termdebug: still get E1023 when specifying arguments
Problem: Termdebug: still get E1023 when specifying arguments and using a prompt buffer. Solution: Use empty() instead of len(). Add a test. Fix wrong order of arguments to assert_equal() in Test_termdebug_basic(). (zeertzjq) closes: #15288 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4266daae17
commit
aef6179bcf
@@ -705,7 +705,7 @@ def StartDebug_prompt(dict: dict<any>)
|
||||
SendCommand('set breakpoint pending on')
|
||||
|
||||
# Set arguments to be run
|
||||
if len(proc_args)
|
||||
if !empty(proc_args)
|
||||
SendCommand($'set args {join(proc_args)}')
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user