summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Riegel <damien@riegel.io>2024-06-14 12:33:17 -0400
committerChristian Brabandt <cb@256bit.org>2024-06-14 20:42:35 +0200
commit17e702a51a28162e82310d8a864a97fa8f977b92 (patch)
treeb86c4e4d3893d2ac1b29ebbdd2dcbc5654d3a822
parentfce324f55718192ae7de389bb88d423eed7977a2 (diff)
runtime(termdebug): make TermDebugSendCommand() a global function again
TermDebugSendCommand lost it's global visibility when converted to vim9script. Restore it. Fixes: 23f29ffc6427 ("runtime(termdebug): convert termdebug plugin to Vim9 script") closes: #14997 Signed-off-by: Damien Riegel <damien@riegel.io> Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index a1c92ba0b7..d6cf327cf8 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -4,7 +4,7 @@ vim9script
# Author: Bram Moolenaar
# Copyright: Vim license applies, see ":help license"
-# Last Change: 2024 Jun 13
+# Last Change: 2024 Jun 14
# Converted to Vim9: Ubaldo Tiberi <ubaldo.tiberi@gmail.com>
# WORK IN PROGRESS - The basics works stable, more to come
@@ -698,7 +698,7 @@ def ContinueCommand()
enddef
# This is global so that a user can create their mappings with this.
-def TermDebugSendCommand(cmd: string)
+def g:TermDebugSendCommand(cmd: string)
if way == 'prompt'
ch_sendraw(gdb_channel, $"{cmd}\n")
else