1
0
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:
zeertzjq
2024-07-18 20:35:42 +02:00
committed by Christian Brabandt
parent 4266daae17
commit aef6179bcf
3 changed files with 23 additions and 9 deletions

View File

@@ -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