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

Prevent error on `</` or `"/` input
The error was:
Error detected while processing function
ICComplete[34]..<SNR>47_ICGetList[8]..<SNR>47_ICFindIncludes: line 48:
E713: Cannot use empty key for Dictionary

It happened because "/" was shortened to "".
Author: xaizek
Author date (UTC): 2016-06-03 19:20
Committer name: xaizek
Committer date (UTC): 2016-06-03 19:20
Parent(s): 2652a13693e8fb2eb0ae72bb10788e294c99c11c
Signing key: 99DC5E4DB05F6BE2
Tree: 5d948e26c0eb95fb3af39f836c5a368e580bc285
File Lines added Lines deleted
plugin/inccomplete.vim 3 3
File plugin/inccomplete.vim changed (mode: 100644) (index ab9ac54..d87b171)
1 1 " Name: inccomplete " Name: inccomplete
2 " Author: xaizek <xaizek@openmailbox.org>
3 " Version: 1.7.40
2 " Author: xaizek <xaizek@openmailbox.org>
3 " Version: 1.7.41
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:ICFindIncludes(user, pathlst)
416 416 " prepare a:pathlst by forming regexps " prepare a:pathlst by forming regexps
417 417 for l:i in range(len(a:pathlst)) for l:i in range(len(a:pathlst))
418 418 let l:path = a:pathlst[i] let l:path = a:pathlst[i]
419 if l:path[-1:] == '/'
419 if l:path != '/' && l:path[-1:] == '/'
420 420 let l:path = l:path[:-2] let l:path = l:path[:-2]
421 421 endif endif
422 422 let g:inccomplete_cache[l:path] = [] let g:inccomplete_cache[l:path] = []
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