From 3da8f4c7ee0d3d727bd8d160874ac55d661c3607 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 10 Nov 2024 09:24:27 +0800 Subject: vim-patch:5e7f43b: runtime(termdebug): allow to use decimal signs (#31149) closes: vim/vim#16011 https://github.com/vim/vim/commit/5e7f43b6ac2ac23d4fbfded75827a13f981d9a96 Co-authored-by: Ella Moss Co-authored-by: Christian Brabandt --- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim') diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 9412a821e8..fd8c4b8817 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1688,10 +1688,14 @@ func s:CreateBreakpoint(id, subid, enabled) let hiName = "debugBreakpoint" endif let label = '' - if exists('g:termdebug_config') - let label = get(g:termdebug_config, 'sign', '') - endif - if label == '' + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign') + let label = g:termdebug_config['sign'] + elseif exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign_decimal') + let label = printf('%02d', a:id) + if a:id > 99 + let label = '9+' + endif + else let label = printf('%02X', a:id) if a:id > 255 let label = 'F+' -- cgit