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

Fix nested directories in "" being shown as files
When they weren't obtained as paths relative to location of the current
buffer.
Author: xaizek
Author date (UTC): 2018-04-05 08:01
Committer name: xaizek
Committer date (UTC): 2018-04-05 08:01
Parent(s): 0cf941648e2c685ea10a4f7f9fed958905fb72f6
Signing key: 99DC5E4DB05F6BE2
Tree: 3d8f16c5695c53ea8bfeb232448bbb7013b5fd51
File Lines added Lines deleted
plugin/inccomplete.vim 5 3
File plugin/inccomplete.vim changed (mode: 100644) (index 5364d32..c588fbb)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@posteo.net> " Author: xaizek <xaizek@posteo.net>
3 " Version: 1.8.47
3 " Version: 1.8.48
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)
318 318 let l:cutidx = - (l:pos + 2) let l:cutidx = - (l:pos + 2)
319 319 if !empty(l:inclst) && l:inclst[0][0][l:cutidx + 1:] != l:dirend0 if !empty(l:inclst) && l:inclst[0][0][l:cutidx + 1:] != l:dirend0
320 320 \ && a:user \ && a:user
321 let l:path = s:ICGetDir()
322 call map(l:inclst, '[l:path, l:dirend0.v:val[1]]')
321 let l:dir = s:ICGetDir()
322 let l:path = s:ICChosp(fnamemodify(l:dir.'/'.l:dirend0, ':p'))
323 call map(l:inclst, '[ v:val[0] == l:path ? l:dir : v:val[0][:l:cutidx],'
324 \.' l:dirend0.v:val[1] ]')
323 325 else else
324 326 call map(l:inclst, '[v:val[0][:l:cutidx], l:dirend0.v:val[1]]') call map(l:inclst, '[v:val[0][:l:cutidx], l:dirend0.v:val[1]]')
325 327 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