mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 06:45:37 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user