mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
man.vim: revert "completion now respects 'wildignorecase'" (#5839)
Instead, a note was added to `:h man.vim` on how 'fileignorecase' controls the case sensitivity of completion.
This commit is contained in:
parent
1928b79e0c
commit
c72f4d4d05
@ -290,10 +290,7 @@ function! s:complete(sect, psect, name) abort
|
|||||||
call s:error(v:exception)
|
call s:error(v:exception)
|
||||||
return
|
return
|
||||||
endtry
|
endtry
|
||||||
let old_fic = &fileignorecase
|
|
||||||
let &fileignorecase = &wildignorecase
|
|
||||||
let pages = globpath(mandirs,'man?/'.a:name.'*.'.a:sect.'*', 0, 1)
|
let pages = globpath(mandirs,'man?/'.a:name.'*.'.a:sect.'*', 0, 1)
|
||||||
let &fileignorecase = old_fic
|
|
||||||
" We remove duplicates in case the same manpage in different languages was found.
|
" We remove duplicates in case the same manpage in different languages was found.
|
||||||
return uniq(sort(map(pages, 's:format_candidate(v:val, a:psect)'), 'i'))
|
return uniq(sort(map(pages, 's:format_candidate(v:val, a:psect)'), 'i'))
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -521,6 +521,8 @@ To use Nvim as a manpager: >
|
|||||||
man.vim will always attempt to reuse the closest man window (above/left) but
|
man.vim will always attempt to reuse the closest man window (above/left) but
|
||||||
otherwise create a split.
|
otherwise create a split.
|
||||||
|
|
||||||
|
The case sensitivity of completion is controlled by 'fileignorecase'.
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
Man {name} Display the manpage for {name}.
|
Man {name} Display the manpage for {name}.
|
||||||
Man {sect} {name} Display the manpage for {name} and section {sect}.
|
Man {sect} {name} Display the manpage for {name} and section {sect}.
|
||||||
|
Loading…
Reference in New Issue
Block a user