1
0
forked from aniani/vim

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>
This commit is contained in:
Mihai Ciuraru
2024-03-24 10:11:06 +02:00
committed by GitHub
parent ad38769030
commit d3c0ff5d5a

View 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