File plugin/inccomplete.vim changed (mode: 100644) (index 79363fb..9f15322) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@openmailbox.org> |
" Author: xaizek <xaizek@openmailbox.org> |
3 |
|
" Version: 1.7.44 |
|
|
3 |
|
" Version: 1.7.45 |
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! ICCompleteInc(bracket) |
109 |
109 |
endif |
endif |
110 |
110 |
|
|
111 |
111 |
if a:bracket == '/' || a:bracket == '\' |
if a:bracket == '/' || a:bracket == '\' |
112 |
|
if getline('.') =~ '^\s*#\s*include\s*["<][^">]*$' |
|
|
112 |
|
" complete when there are no closing character or we're right before |
|
113 |
|
" it |
|
114 |
|
let l:curline = getline('.') |
|
115 |
|
if l:curline =~ '^\s*#\s*include\s*["<][^">]*$' || |
|
116 |
|
\ (l:curline =~ '^\s*#\s*include\s*["<][^">]*[">]$' && |
|
117 |
|
\ (l:curline[col('.') - 1] == '"' || l:curline[col('.') - 1 ] == '>')) |
113 |
118 |
return a:bracket.l:keycomp |
return a:bracket.l:keycomp |
114 |
119 |
endif |
endif |
115 |
120 |
endif |
endif |