File plugin/inccomplete.vim changed (mode: 100644) (index 1e1ce74..62c1598) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@posteo.net> |
" Author: xaizek <xaizek@posteo.net> |
3 |
|
" Version: 1.8.49 |
|
|
3 |
|
" Version: 1.8.50 |
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:IgnoreCaseComparer(i1, i2) |
245 |
245 |
if a:i1['dir'] != a:i2['dir'] |
if a:i1['dir'] != a:i2['dir'] |
246 |
246 |
return a:i1['dir'] ? -1 : 1 |
return a:i1['dir'] ? -1 : 1 |
247 |
247 |
endif |
endif |
|
248 |
|
if a:i1['menu'] != a:i2['menu'] |
|
249 |
|
return a:i1['menu'] < a:i2['menu'] ? -1 : 1 |
|
250 |
|
endif |
248 |
251 |
return a:i1['abbr'] == a:i2['abbr'] ? 0 : |
return a:i1['abbr'] == a:i2['abbr'] ? 0 : |
249 |
252 |
\ (a:i1['abbr'] > a:i2['abbr'] ? 1 : -1) |
\ (a:i1['abbr'] > a:i2['abbr'] ? 1 : -1) |
250 |
253 |
endfunction |
endfunction |
|
... |
... |
function s:Comparer(i1, i2) |
252 |
255 |
if a:i1['dir'] != a:i2['dir'] |
if a:i1['dir'] != a:i2['dir'] |
253 |
256 |
return a:i1['dir'] ? -1 : 1 |
return a:i1['dir'] ? -1 : 1 |
254 |
257 |
endif |
endif |
|
258 |
|
if a:i1['menu'] != a:i2['menu'] |
|
259 |
|
return a:i1['menu'] < a:i2['menu'] ? -1 : 1 |
|
260 |
|
endif |
255 |
261 |
return a:i1['abbr'] ==# a:i2['abbr'] ? 0 : |
return a:i1['abbr'] ==# a:i2['abbr'] ? 0 : |
256 |
262 |
\ (a:i1['abbr'] ># a:i2['abbr'] ? 1 : -1) |
\ (a:i1['abbr'] ># a:i2['abbr'] ? 1 : -1) |
257 |
263 |
endfunction |
endfunction |