vim-patch:9.1.0599: Termdebug: still get E1023 when specifying arguments (#29794)

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: vim/vim#15288

aef6179bcf
This commit is contained in:
zeertzjq
2024-07-19 11:48:13 +08:00
committed by GitHub
parent f61efe3fe7
commit 0b710c8e55
2 changed files with 21 additions and 9 deletions

View File

@@ -518,7 +518,7 @@ func s:StartDebug_prompt(dict)
call s:SendCommand('set breakpoint pending on')
" Set arguments to be run
if len(proc_args)
if !empty(proc_args)
call s:SendCommand($'set args {join(proc_args)}')
endif