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

https://github.com/vim/vim/commit/2dd613f57bf17eb8ff050bcb5510eb0279f5c9ab

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
co-authored by Shane-XB-Qian
parent 4f8941c1a5
commit 74e23b3b2a
3 changed files with 32 additions and 6 deletions
+3 -3
View File
@@ -1781,9 +1781,9 @@ func s:CreateBreakpoint(id, subid, enabled)
let label = get(g:termdebug_config, 'sign', '')
endif
if label == ''
let label = substitute(nr, '\..*', '', '')
if strlen(label) > 2
let label = strpart(label, strlen(label) - 2)
let label = printf('%02X', a:id)
if a:id > 255
let label = 'F+'
endif
endif
call sign_define('debugBreakpoint' .. nr,