0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

runtime(termdebug): Remove load guard

closes: #18098

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-08-24 12:19:20 +02:00
committed by Christian Brabandt
parent dc725a04fa
commit fdd93e0999
2 changed files with 1 additions and 27 deletions

View File

@@ -597,22 +597,4 @@ function Test_termdebug_config_types()
unlet g:termdebug_config
endfunction
function Test_termdebug_config_debug()
let s:error_message = '\[termdebug\] Termdebug already loaded'
" USER mode: No error message shall be displayed
packadd termdebug
call assert_true(execute('messages') !~ s:error_message)
" DEBUG mode: Error message shall now be displayed
let g:termdebug_config = {}
let g:termdebug_config['debug'] = 1
packadd termdebug
call assert_true(execute('messages') =~ s:error_message)
unlet g:termdebug_config
unlet g:termdebug_loaded
" Revert DEBUG mode, by reloading the plugin
source $VIMRUNTIME/pack/dist/opt/termdebug/plugin/termdebug.vim
endfunction
" vim: shiftwidth=2 sts=2 expandtab