Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mattn
Copy link
Member

@mattn mattn commented Aug 3, 2017

When closing terminal with exit_cb options of job, vim crash. Below is a script to reproduce.

function! s:exit_cb(job, st)
  exe s:buf 'bwipe!'
endfunction

function! s:test()
  let s:buf = term_start('ls')
  let job = term_getjob(s:buf)
  call job_setoptions(job, {'exit_cb': function('s:exit_cb')})
endfunction

call s:test()

@codecov-io
Copy link

Codecov Report

Merging #1922 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1922      +/-   ##
==========================================
- Coverage   75.09%   75.07%   -0.03%     
==========================================
  Files          76       76              
  Lines      125328   125287      -41     
==========================================
- Hits        94112    94055      -57     
- Misses      31216    31232      +16
Impacted Files Coverage Δ
src/version.c 79.29% <0%> (-1.02%) ⬇️
src/if_py_both.h 75.31% <0%> (-0.71%) ⬇️
src/channel.c 83.59% <0%> (-0.14%) ⬇️
src/gui_gtk_x11.c 47.39% <0%> (-0.11%) ⬇️
src/os_unix.c 57.03% <0%> (+0.04%) ⬆️
src/if_xcmdsrv.c 83.51% <0%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0ab979...df9e29b. Read the comment docs.

@brammool brammool closed this in 3c3a80d Aug 3, 2017
@brammool
Copy link
Contributor

brammool commented Aug 3, 2017 via email

@mattn mattn deleted the fix-close-crash branch August 11, 2017 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants