Fix segfault on quit by control fifo (#144).
authorDaniel Carl <danielcarl@gmx.de>
Sun, 16 Nov 2014 23:23:13 +0000 (00:23 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 16 Nov 2014 23:23:13 +0000 (00:23 +0100)
commit1eab14a56e021d1f0926ce314b63a973b7fc415e
tree0f348a630b5f718b34db9c78133f1d713af383da
parent925aa4bedb20236dd0e7b75414e6bc05960bb4a6
Fix segfault on quit by control fifo (#144).

If vimb is closed by the fifo with `echo ":q\r" >> {fifo}` or `echo '<C-Q>' >>
{fifo}`, vimb crashed because of a too early cleanup during allready active
main loop.
The cleanup code is now called right after the main loop is killed.
src/main.c