diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-18 13:16:50 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-18 13:21:22 +0800 |
commit | 8ce85d5fc706ff523950f17d7464eb7dd2842633 (patch) | |
tree | 0a0300dc0d97b0429471c39a90b465d214446c95 | |
parent | c909efb96f30a9298df29f70bb3b839f6d568706 (diff) | |
download | rneovim-8ce85d5fc706ff523950f17d7464eb7dd2842633.tar.gz rneovim-8ce85d5fc706ff523950f17d7464eb7dd2842633.tar.bz2 rneovim-8ce85d5fc706ff523950f17d7464eb7dd2842633.zip |
vim-patch:c3837a4: runtime(termdebug): fix a few issues
Fix a few minor issues:
1. filename with whitespaces issue should be fixed now, fixes: vim/vim#12357
2. ":Termdebug args" should work now, fixes: vim/vim#15254
closes: vim/vim#15261
https://github.com/vim/vim/commit/c3837a46ff5f31e9b18f8f86b6e464bed1fe20d1
Omit the DeleteCommands() change as it isn't really an improvement.
Co-authored-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 51f9a3dca4..cf14f66c4b 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -361,7 +361,7 @@ func s:StartDebug_term(dict) endwhile " Set arguments to be run. - if len(proc_args) + if !empty(proc_args) call chansend(s:gdb_job_id, $"server set args {join(proc_args)}\r") endif @@ -1188,7 +1188,7 @@ func s:Until(at) let s:stopped = v:false " call ch_log('assume that program is running after this command') " Use the fname:lnum format - let at = empty(a:at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : a:at + let at = empty(a:at) ? $"\"{expand('%:p')}:{line('.')}\"" : a:at call s:SendCommand($'-exec-until {at}') " else " call ch_log('dropping command, program is running: exec-until') @@ -1207,7 +1207,7 @@ func s:SetBreakpoint(at, tbreak=v:false) endif " Use the fname:lnum format, older gdb can't handle --source. - let at = empty(a:at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : a:at + let at = empty(a:at) ? $"\"{expand('%:p')}:{line('.')}\"" : a:at if a:tbreak let cmd = $'-break-insert -t {at}' else |