2019-06-09 14:11:17 +08:00
|
|
|
"=============================================================================
|
|
|
|
" debug.vim --- debug tool for SpaceVim command
|
2022-02-03 17:24:51 +08:00
|
|
|
" Copyright (c) 2016-2022 Wang Shidong & Contributors
|
2022-03-27 13:38:54 +08:00
|
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
2019-06-09 14:11:17 +08:00
|
|
|
" URL: https://spacevim.org
|
|
|
|
" License: GPLv3
|
|
|
|
"=============================================================================
|
|
|
|
|
|
|
|
|
2016-12-26 21:11:19 +08:00
|
|
|
let s:debug_message = []
|
2019-06-08 15:09:53 +08:00
|
|
|
function! SpaceVim#commands#debug#completion_debug(ArgLead, CmdLine, CursorPos) abort
|
2019-01-28 22:12:37 +08:00
|
|
|
call add(s:debug_message, 'arglead:['.a:ArgLead .'] cmdline:[' .a:CmdLine .'] cursorpos:[' .a:CursorPos .']')
|
2016-12-26 21:11:19 +08:00
|
|
|
endfunction
|
|
|
|
|
2019-06-08 15:09:53 +08:00
|
|
|
function! SpaceVim#commands#debug#get_message() abort
|
2016-12-26 21:11:19 +08:00
|
|
|
return join(s:debug_message, "\n")
|
|
|
|
endfunction
|
|
|
|
|
2019-06-08 15:09:53 +08:00
|
|
|
function! SpaceVim#commands#debug#clean_message() abort
|
2016-12-26 21:11:19 +08:00
|
|
|
let s:debug_message = []
|
|
|
|
return s:debug_message
|
|
|
|
endfunction
|