runtime(termdebug): allow to use decimal signs Commit: https://github.com/vim/vim/commit/5e7f43b6ac2ac23d4fbfded75827a13f981d9a96 Author: Ella Moss <ella.m...@utah.edu> Date: Sat Nov 9 11:32:15 2024 +0100
runtime(termdebug): allow to use decimal signs closes: https://github.com/vim/vim/issues/16011 Co-authored-by: Christian Brabandt <c...@256bit.org> Signed-off-by: Ella Moss <ella.m...@utah.edu> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index 6b53e0223..7027b3fef 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -1,4 +1,4 @@ -*terminal.txt* For Vim version 9.1. Last change: 2024 Oct 27 +*terminal.txt* For Vim version 9.1. Last change: 2024 Nov 09 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1683,13 +1683,17 @@ Change default signs ~ Termdebug uses the hex number of the breakpoint ID in the signcolumn to represent breakpoints. If it is greater than "0xFF", then it will be displayed as "F+", due to we really only have two screen cells for the sign. +You may also use decimal breakpoint signs instead, in which case IDs greater +than 99 will be displayed as "9+". -If you want to customize the breakpoint signs: > +If you want to customize the breakpoint signs to show `>>` in the signcolumn: > let g:termdebug_config['sign'] = '>>' +If you would like to use decimal (base 10) breakpoint signs: > + let g:termdebug_config['sign_decimal'] = 1 If there is no g:terminal_config yet you can use: > let g:termdebug_config = {'sign': '>>'} - -After this, breakpoints will be displayed as `>>` in the signcolumn. +Likewise, to enable decimal signs: > + let g:termdebug_config = {'sign_decimal': 1} Window toolbar ~ diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index e7c010d4c..6f1f4b522 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1912,6 +1912,11 @@ def CreateBreakpoint(id: number, subid: number, enabled: string) var label = '' if exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign') label = g:termdebug_config['sign'] + elseif exists('g:termdebug_config') && has_key(g:termdebug_config, 'sign_decimal') + label = printf('%02d', id) + if id > 99 + label = '9+' + endif else label = printf('%02X', id) if id > 255 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1t9ixm-008kLe-ND%40256bit.org.