Commit: runtime(termdebug): using wrong type for PlaceSign()

3 views
Skip to first unread message

Christian Brabandt

unread,
Jun 16, 2024, 2:45:18 AM6/16/24
to vim...@googlegroups.com
runtime(termdebug): using wrong type for PlaceSign()

Commit: https://github.com/vim/vim/commit/f127dce1889a80280c16ef1163307f4086434182
Author: shane.xb.qian <shane...@foxmail.com>
Date: Sun Jun 16 08:35:57 2024 +0200

runtime(termdebug): using wrong type for PlaceSign()

Make sure to convert them to numbers.

fixes: #14994
closes: #15015

Signed-off-by: shane.xb.qian <shane...@foxmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index d6cf327cf..5bde69a44 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -1949,7 +1949,7 @@ def BufRead()
for [id, entries] in items(breakpoints)
for [subid, entry] in items(entries)
if entry['fname'] == fname
- PlaceSign(id, subid, entry)
+ PlaceSign(str2nr(id), str2nr(subid), entry)
endif
endfor
endfor
Reply all
Reply to author
Forward
0 new messages