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

Fix adding descendants on "../..." completion
Author: xaizek
Author date (UTC): 2016-06-26 19:26
Committer name: xaizek
Committer date (UTC): 2016-06-26 19:26
Parent(s): 9a3c581a712acce87bac2611c8e4e38a932e7be7
Signing key: 99DC5E4DB05F6BE2
Tree: 3f61d6fabaa36fda06d50bf6e3f00bfbb5a32cf2
File Lines added Lines deleted
plugin/inccomplete.vim 5 3
File plugin/inccomplete.vim changed (mode: 100644) (index d87b171..5aea5bd)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@openmailbox.org> " Author: xaizek <xaizek@openmailbox.org>
3 " Version: 1.7.41
3 " Version: 1.7.42
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:ICFilter(user, inclst, base, dir)
297 297 let l:dirend2 = escape(l:dirend1, '\') let l:dirend2 = escape(l:dirend1, '\')
298 298 endif endif
299 299 if a:user if a:user
300 " filter items by full path, leave only exact matches or direct children
301 " (match full pattern or have at most one more trailing path entry)
300 302 call filter( call filter(
301 \ l:inclst,
302 \ 'v:val[0]."/".v:val[1] =~ "^".l:dirend2."\\($\\|[\\/]*.*\\)"')
303 \ l:inclst,
304 \ 'v:val[0]."/".v:val[1] =~ "^".l:dirend2."\\($\\|[\\/]*[^\\/]*$\\)"')
303 305 else else
304 306 call filter(l:inclst, 'v:val[0] =~ "'.l:sl1.'".l:dirend2."\\?$"') call filter(l:inclst, 'v:val[0] =~ "'.l:sl1.'".l:dirend2."\\?$"')
305 307 endif endif
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