From d3c0ff5d5a9076999a8504ee4d23a2c5abaf494e Mon Sep 17 00:00:00 2001 From: Mihai Ciuraru Date: Sun, 24 Mar 2024 10:11:06 +0200 Subject: runtime(termdebug): allow multibyte characters as breakpoint signs (#14274) Allow multibyte characters as termdebug signs using slice() function Co-authored-by: zeertzjq Signed-off-by: Mihai Ciuraru Signed-off-by: Christian Brabandt --- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/pack') diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 1dce91b508..50833f0df0 100644 --- 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, enabled) endif endif call sign_define('debugBreakpoint' .. nr, - \ #{text: strpart(label, 0, 2), + \ #{text: slice(label, 0, 2), \ texthl: hiName}) endif endfunc -- cgit v1.2.3