mirror of
https://github.com/Green-Sky/crdt_tests.git
synced 2024-12-22 07:53:24 +01:00
minor vimscript fixes
This commit is contained in:
parent
3c7111f6c9
commit
a3d9211e5e
@ -149,7 +149,7 @@ function! GreenCRDTCheckTimeAndFetch()
|
||||
if b:green_crdt_timer_can_fetch
|
||||
let b:green_crdt_timer_can_fetch = v:false
|
||||
|
||||
" dont update when inserting or visual
|
||||
" dont update when inserting or visual (or atleast not in visual)
|
||||
if mode() is# 'n'
|
||||
let l:response = ch_evalexpr(b:channel, [{'cmd': 'fetch_changes'}])
|
||||
for [line_number, line] in l:response
|
||||
@ -182,13 +182,14 @@ function! GreenCRDTStop()
|
||||
au!
|
||||
augroup END
|
||||
|
||||
call timer_stop(green_crdt_fetch_timer)
|
||||
call timer_stop(b:green_crdt_fetch_timer)
|
||||
|
||||
call ch_close(b:channel)
|
||||
|
||||
delfunction GreenCRDTCheckTimeAndSend
|
||||
delfunction GreenCRDTCheckTimeAndFetch
|
||||
delfunction GreenCRDTSendTimerCallback
|
||||
delfunction GreenCRDTFetchTimerCallback
|
||||
delfunction GreenCRDTChangeEvent
|
||||
"delfunction GreenCRDTStop
|
||||
let b:green_crdt_timer_can_send = v:true
|
||||
|
Loading…
Reference in New Issue
Block a user