# HG changeset patch # User Christian Brabandt # Date 1711268106 -3600 # Node ID 200db09e7504c8e38da40100799d1d7f8017d41c # Parent 01129ed2de8e525bf4efb34acc02b6549336722c runtime(termdebug): allow multibyte characters as breakpoint signs (#14274) Commit: https://github.com/vim/vim/commit/d3c0ff5d5a9076999a8504ee4d23a2c5abaf494e Author: Mihai Ciuraru 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 Signed-off-by: Mihai Ciuraru Signed-off-by: Christian Brabandt diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1661,7 +1661,7 @@ func s:CreateBreakpoint(id, subid, enabl endif endif call sign_define('debugBreakpoint' .. nr, - \ #{text: strpart(label, 0, 2), + \ #{text: slice(label, 0, 2), \ texthl: hiName}) endif endfunc