File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- " https://github.com/prabirshrestha/callbag.vim#9108df10d721c04a8908a391dde14aeabacc422d
1
+ " https://github.com/prabirshrestha/callbag.vim#09ff9228257f5e8c68910fd9721c95f9d4fb6763
2
2
" :CallbagEmbed path=autoload/lsp/callbag.vim namespace=lsp#callbag
3
3
4
4
let s: undefined_token = ' __callbag_undefined__'
@@ -1315,21 +1315,20 @@ endfunction
1315
1315
1316
1316
function ! s: shareTalkbackCallback (data, sink, t , d ) abort
1317
1317
if a: t == 2
1318
- let l: i = -1
1319
- let l: found = 0
1320
- for l: S in a: data [' sinks' ]
1321
- let l: i += 1
1322
- if l: S == a: sink
1318
+ let l: i = 0
1319
+ while l: i < len (a: data [' sinks' ])
1320
+ if a: data [' sinks' ][l: i ] == a: sink
1323
1321
let l: found = 1
1324
1322
break
1325
1323
endif
1326
- endfor
1324
+ let l: i += 1
1325
+ endwhile
1327
1326
1328
1327
if l: found
1329
1328
call remove (a: data [' sinks' ], l: i )
1330
1329
endif
1331
1330
1332
- if ! empty (a: data [' sinks' ])
1331
+ if empty (a: data [' sinks' ])
1333
1332
call a: data [' sourceTalkback' ](2 , lsp#callbag#undefined ())
1334
1333
endif
1335
1334
else
You can’t perform that action at this time.
0 commit comments