xaizek / vim-inccomplete (License: Vim) (since 2018-12-07)
Vim plugin for #include directive completion in C family of languages.
Commit b07b9ed1bb1208794511d1b9581809559bc5e62a

Fix paths with spaces on Windows (only?)
Thanks to BTNC.

See #5 on GitHub.
Author: xaizek
Author date (UTC): 2016-11-09 15:23
Committer name: xaizek
Committer date (UTC): 2016-11-09 15:23
Parent(s): 2562da3222b200dad711573430487cfc1b42add9
Signing key: 99DC5E4DB05F6BE2
Tree: c4188986fb714a801953ab9be77836903c5499dd
File Lines added Lines deleted
plugin/inccomplete.vim 4 1
File plugin/inccomplete.vim changed (mode: 100644) (index 7deb2b2..79363fb)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@openmailbox.org> " Author: xaizek <xaizek@openmailbox.org>
3 " Version: 1.7.43
3 " Version: 1.7.44
4 4 " License: Same terms as Vim itself (see :help license) " License: Same terms as Vim itself (see :help license)
5 5 " "
6 6 " See :help inccomplete for documentation. " See :help inccomplete for documentation.
 
... ... function! s:ICGetSubDirs(pathlst, base)
484 484 " search " search
485 485 let l:dirend = a:base[:l:pos] let l:dirend = a:base[:l:pos]
486 486 let l:pathlst = join(a:pathlst, ',') let l:pathlst = join(a:pathlst, ',')
487 " escape spaces in paths (seems to be needed on Windows, does not harm on
488 " other systems)
489 let l:pathlst = substitute(l:pathlst, ' ', '\\ ', 'g')
487 490 let l:subdirs = finddir(l:dirend, l:pathlst, -1) let l:subdirs = finddir(l:dirend, l:pathlst, -1)
488 491
489 492 " path expanding " path expanding
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vim-inccomplete

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vim-inccomplete

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master