To: vim_dev@googlegroups.com Subject: Patch 9.0.1671 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1671 Problem: Termdebug: error with more than 99 breakpoints. Solution: Use a different sign for breakpoint 100 and over. (closes #12589, closes #12588) Files: runtime/doc/terminal.txt, runtime/pack/dist/opt/termdebug/plugin/termdebug.vim *** ../vim-9.0.1670/runtime/doc/terminal.txt 2022-10-10 11:46:12.202333726 +0100 --- runtime/doc/terminal.txt 2023-06-28 23:19:33.533149438 +0100 *************** *** 1502,1518 **** Evaluate `:Evaluate` If you don't want this then disable it with: > let g:termdebug_config['popup'] = 0 ! or if there is no g:termdebug_config: > let g:termdebug_popup = 0 Vim window width ~ *termdebug_wide* - To change the width of the Vim window when debugging starts and use a vertical split: > let g:termdebug_config['wide'] = 163 ! Or if there is no g:termdebug_config: > let g:termdebug_wide = 163 This will set 'columns' to 163 when `:Termdebug` is used. The value is --- 1537,1573 ---- Evaluate `:Evaluate` If you don't want this then disable it with: > let g:termdebug_config['popup'] = 0 ! If there is no g:termdebug_config you can use: > let g:termdebug_popup = 0 + Change default signs ~ + *termdebug_signs* + Termdebug uses the last two characters of the breakpoint ID in the + signcolumn to represent breakpoints. For example, breakpoint ID 133 + will be displayed as `33`. + + If you want to customize the breakpoint signs: > + let g:termdebug_config['sign'] = '>>' + 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. + + + Window toolbar ~ + *termdebug_winbar* + By default the Termdebug plugin creates a window toolbar if the mouse is + enabled (see |:Winbar|). If you don't want this then disable it with: > + let g:termdebug_config['winbar'] = 0 + + Vim window width ~ *termdebug_wide* To change the width of the Vim window when debugging starts and use a vertical split: > let g:termdebug_config['wide'] = 163 ! If there is no g:termdebug_config you can use: > let g:termdebug_wide = 163 This will set 'columns' to 163 when `:Termdebug` is used. The value is *** ../vim-9.0.1670/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim 2023-06-24 20:02:21.503021810 +0100 --- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim 2023-06-28 23:22:09.477625500 +0100 *************** *** 1395,1403 **** else let hiName = "debugBreakpoint" endif call sign_define('debugBreakpoint' .. nr, ! \ #{text: substitute(nr, '\..*', '', ''), ! \ texthl: hiName}) endif endfunc --- 1401,1419 ---- 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: strpart(label, 0, 2), ! \ texthl: hiName}) endif endfunc *** ../vim-9.0.1670/src/version.c 2023-06-27 21:51:03.010523781 +0100 --- src/version.c 2023-06-28 23:23:06.241770152 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1671, /**/ -- hundred-and-one symptoms of being an internet addict: 245. You use Real Audio to listen to a radio station from a distant city rather than turn on your stereo system. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///