mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
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:
co-authored by
Shane-XB-Qian
parent
4f8941c1a5
commit
74e23b3b2a
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user