runtime(termdebug): make TermDebugSendCommand() a global function again

Commit: 
https://github.com/vim/vim/commit/17e702a51a28162e82310d8a864a97fa8f977b92
Author: Damien Riegel <dam...@riegel.io>
Date:   Fri Jun 14 12:33:17 2024 -0400

    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 <dam...@riegel.io>
    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 a1c92ba0b..d6cf327cf 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.tib...@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}
")
   else

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sIBv5-00CxoK-Vx%40256bit.org.

Raspunde prin e-mail lui