mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
vim-patch:5e7f43b: runtime(termdebug): allow to use decimal signs (#31149)
closes: vim/vim#16011 https://github.com/vim/vim/commit/5e7f43b6ac2ac23d4fbfded75827a13f981d9a96 Co-authored-by: Ella Moss <ella.moss@utah.edu> Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
co-authored by
Ella Moss
Christian Brabandt
parent
7232b54aee
commit
3da8f4c7ee
+8
-4
@@ -1688,10 +1688,14 @@ func s:CreateBreakpoint(id, subid, enabled)
|
||||
let hiName = "debugBreakpoint"
|
||||
endif
|
||||
let label = ''
|
||||
if exists('g:termdebug_config')
|
||||
let label = get(g:termdebug_config, 'sign', '')
|
||||
endif
|
||||
if label == ''
|
||||
if exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign')
|
||||
let label = g:termdebug_config['sign']
|
||||
elseif exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign_decimal')
|
||||
let label = printf('%02d', a:id)
|
||||
if a:id > 99
|
||||
let label = '9+'
|
||||
endif
|
||||
else
|
||||
let label = printf('%02X', a:id)
|
||||
if a:id > 255
|
||||
let label = 'F+'
|
||||
|
||||
Reference in New Issue
Block a user