diff options
author | Shane-XB-Qian <shane.qian@foxmail.com> | 2023-11-12 23:53:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 16:53:39 +0100 |
commit | 2dd613f57bf17eb8ff050bcb5510eb0279f5c9ab (patch) | |
tree | daf76687cde4e64b5da85ffaef02eb3e3e00baf7 /runtime/pack/dist/opt | |
parent | 4ae16d721a4c866c8aae2ed331d4ce933b4cf300 (diff) |
runtime(termdebug): improve the breakpoint sign label (#13525)
// related #12589
// that should be the last chat (I) with Bram, r.i.p
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/pack/dist/opt')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 6d8e483e2e..e764c2353a 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1648,9 +1648,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, |