mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
22 lines
348 B
VimL
Vendored
22 lines
348 B
VimL
Vendored
" Resource leak checker.
|
|
|
|
let max = 2048
|
|
|
|
for i in range(1, max)
|
|
redraw
|
|
echo i.'/'.max
|
|
call vimproc#system('ls | head -20')
|
|
endfor
|
|
|
|
for i in range(1, max)
|
|
redraw
|
|
echo i.'/'.max
|
|
|
|
let process = vimproc#pgroup_open('ls')
|
|
while !process.stdout.eof
|
|
call process.stdout.read(-1)
|
|
endwhile
|
|
|
|
let [_, status] = process.waitpid()
|
|
endfor
|