mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
refactor(chat): remove debug function
This commit is contained in:
parent
229f66f56c
commit
d969cf80f6
@ -316,15 +316,6 @@ fu! s:windowsinit() abort
|
||||
setl filetype=vimchat
|
||||
endf
|
||||
|
||||
function! s:debug() abort
|
||||
tabnew
|
||||
for line in s:debug_log
|
||||
call append(line('$'), line)
|
||||
endfor
|
||||
nnoremap <buffer><silent> q :bd!<CR>
|
||||
endfunction
|
||||
|
||||
|
||||
let s:enter_history = []
|
||||
function! s:enter() abort
|
||||
if s:c_begin . s:c_char . s:c_end =~# '/quit\s*'
|
||||
@ -497,6 +488,3 @@ function! s:send(msg) abort
|
||||
call ch_sendraw(s:channel, a:msg ."\n")
|
||||
endif
|
||||
endfunction
|
||||
|
||||
call chat#debug#defind('chatting', function('s:debug'))
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
let s:debug_func = {}
|
||||
|
||||
function! chat#debug#defind(key, value) abort
|
||||
call extend(s:debug_func, {a:key : a:value})
|
||||
endfunction
|
||||
|
||||
function! chat#debug#getLog(key) abort
|
||||
call call(s:debug_func[a:key],[])
|
||||
endfunction
|
Loading…
Reference in New Issue
Block a user