Rip-Rip/clang_complete — pull request #102 by majutsushi (2011-11-20 23:34:50+00:00)
Title: Fix threading race condition

Due to a race condition the `getline` call in `getCurrentFile()` can end up accessing the wrong buffer, potentially causing a segfault. This patch fixes it by getting the buffer data from the Vim thread instead.

More information in this thread:
http://groups.google.com/group/vim_dev/browse_thread/thread/11202170590cdeaa