We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6c587e + 9763bb8 commit d9d09b6Copy full SHA for d9d09b6
1 file changed
autoload/ctrlp.vim
@@ -1956,9 +1956,10 @@ fu! s:bufnrfilpath(line)
1956
endf
1957
1958
fu! ctrlp#normcmd(cmd, ...)
1959
+ let buftypes = [ 'quickfix', 'help' ]
1960
if a:0 < 2 && s:nosplit() | retu a:cmd | en
1961
let norwins = filter(range(1, winnr('$')),
- \ 'empty(getbufvar(winbufnr(v:val), "&bt")) || s:isneovimterminal(winbufnr(v:val))')
1962
+ \ 'index(buftypes, getbufvar(winbufnr(v:val), "&bt")) == -1 || s:isneovimterminal(winbufnr(v:val))')
1963
for each in norwins
1964
let bufnr = winbufnr(each)
1965
if empty(bufname(bufnr)) && empty(getbufvar(bufnr, '&ft'))
0 commit comments