summaryrefslogtreecommitdiffstats
path: root/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim')
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index b4dccc5503..d053851024 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -1401,9 +1401,19 @@ func s:CreateBreakpoint(id, subid, enabled)
else
let hiName = "debugBreakpoint"
endif
+ let label = ''
+ if exists('g:termdebug_config')
+ 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)
+ endif
+ endif
call sign_define('debugBreakpoint' .. nr,
- \ #{text: substitute(nr, '\..*', '', ''),
- \ texthl: hiName})
+ \ #{text: strpart(label, 0, 2),
+ \ texthl: hiName})
endif
endfunc