Mercurial > vim
comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 34622:200db09e7504
runtime(termdebug): allow multibyte characters as breakpoint signs (#14274)
Commit: https://github.com/vim/vim/commit/d3c0ff5d5a9076999a8504ee4d23a2c5abaf494e
Author: Mihai Ciuraru <mihai.ciuraru@gmail.com>
Date: Sun Mar 24 10:11:06 2024 +0200
runtime(termdebug): allow multibyte characters as breakpoint signs (https://github.com/vim/vim/issues/14274)
Allow multibyte characters as termdebug signs using slice() function
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Mihai Ciuraru <mihai.ciuraru@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Mar 2024 09:15:06 +0100 |
parents | 4cacac1abdb8 |
children | 7361f7682670 |
comparison
equal
deleted
inserted
replaced
34621:01129ed2de8e | 34622:200db09e7504 |
---|---|
1659 if a:id > 255 | 1659 if a:id > 255 |
1660 let label = 'F+' | 1660 let label = 'F+' |
1661 endif | 1661 endif |
1662 endif | 1662 endif |
1663 call sign_define('debugBreakpoint' .. nr, | 1663 call sign_define('debugBreakpoint' .. nr, |
1664 \ #{text: strpart(label, 0, 2), | 1664 \ #{text: slice(label, 0, 2), |
1665 \ texthl: hiName}) | 1665 \ texthl: hiName}) |
1666 endif | 1666 endif |
1667 endfunc | 1667 endfunc |
1668 | 1668 |
1669 func! s:SplitMsg(s) | 1669 func! s:SplitMsg(s) |