mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +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
|
setl filetype=vimchat
|
||||||
endf
|
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 = []
|
let s:enter_history = []
|
||||||
function! s:enter() abort
|
function! s:enter() abort
|
||||||
if s:c_begin . s:c_char . s:c_end =~# '/quit\s*'
|
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")
|
call ch_sendraw(s:channel, a:msg ."\n")
|
||||||
endif
|
endif
|
||||||
endfunction
|
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…
x
Reference in New Issue
Block a user