runtime(termdebug): allow to use decimal signs

closes: #16011

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Ella Moss <ella.moss@utah.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ella Moss
2024-11-09 11:32:15 +01:00
committed by Christian Brabandt
parent 815c822aaf
commit 5e7f43b6ac
2 changed files with 13 additions and 4 deletions

View File

@ -1912,6 +1912,11 @@ def CreateBreakpoint(id: number, subid: number, enabled: string)
var label = ''
if exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign')
label = g:termdebug_config['sign']
elseif exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign_decimal')
label = printf('%02d', id)
if id > 99
label = '9+'
endif
else
label = printf('%02X', id)
if id > 255