summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihai Ciuraru <mihai.ciuraru@gmail.com>2024-03-24 10:11:06 +0200
committerGitHub <noreply@github.com>2024-03-24 09:11:06 +0100
commitd3c0ff5d5a9076999a8504ee4d23a2c5abaf494e (patch)
tree86a4dddb2da3b0a146d45983a8a695f431af072d
parentad38769030b5fa86aa0e8f1f0b4266690dfad4c9 (diff)
runtime(termdebug): allow multibyte characters as breakpoint signs (#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>
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim2
1 files changed, 1 insertions, 1 deletions
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