Rip-Rip/clang_complete — Issue #111: Incorrect paths from .clang_complete on Windows
Author: kaelic
Created: 2011-12-24 17:47:28+00:00
State: open

Relative paths used in .clang_complete are converted incorrectly on Windows due to 'l:local_conf' having escape slashes in the path, which breaks the substitution later in the function.

Solution is to change the slashes before substitution:

let l:fixedpath = substitute(l:local_conf[:-16], '\\', '/', 'g')
let l:opt = substitute(l:opt, '\C-I\s*\(\%(\w\|\\\s\)*\)',
\ '-I' . l:fixedpath . '\1', 'g')