]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(termdebug): allow multibyte characters as breakpoint signs (#14274)
authorMihai Ciuraru <mihai.ciuraru@gmail.com>
Sun, 24 Mar 2024 08:11:06 +0000 (10:11 +0200)
committerGitHub <noreply@github.com>
Sun, 24 Mar 2024 08:11:06 +0000 (09:11 +0100)
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>
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

index 1dce91b508804f75d4f15a75094e10af48826122..50833f0df0b65c0d5b9edb8f1f297cb715614a45 100644 (file)
@@ -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