mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(termdebug): make TermDebugSendCommand() a global function again
TermDebugSendCommand lost it's global visibility when converted to
vim9script. Restore it.
Fixes: 23f29ffc64
("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>
This commit is contained in:
committed by
Christian Brabandt
parent
fce324f557
commit
17e702a51a
@ -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
|
||||
|
Reference in New Issue
Block a user