vim-patch:2dd613f57bf1 (#26009)

runtime(termdebug): improve the breakpoint sign label (vim/vim#13525)

// related vim/vim#12589
// that should be the last chat (I) with Bram, r.i.p

2dd613f57b

Co-authored-by: Shane-XB-Qian <shane.qian@foxmail.com>
This commit is contained in:
zeertzjq
2023-11-13 05:44:30 +08:00
committed by GitHub
parent 4f8941c1a5
commit 74e23b3b2a
3 changed files with 32 additions and 6 deletions

View File

@@ -1781,9 +1781,9 @@ func s:CreateBreakpoint(id, subid, enabled)
if exists('g:termdebug_config')
let label = get(g:termdebug_config, 'sign', '')
endif
if label == ''
let label = substitute(nr, '\..*', '', '')
if strlen(label) > 2
if label == ''
let label = printf('%02X', a:id)
if a:id > 255
let label = 'F+'
endif
endif