mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 17:13:44 +08:00
Correct quickfix window detection pattern
This commit is contained in:
parent
ce32405105
commit
fdc847c8da
|
@ -24,7 +24,7 @@ function! s:get_text()
|
||||||
|
|
||||||
let nr = bufnr('%')
|
let nr = bufnr('%')
|
||||||
for buf in split(buffers, '\n')
|
for buf in split(buffers, '\n')
|
||||||
if match(buf, '\v^\s+'.nr) > -1
|
if match(buf, '\v^\s*'.nr) > -1
|
||||||
if match(buf, '\[Quickfix List\]') > -1
|
if match(buf, '\[Quickfix List\]') > -1
|
||||||
return g:airline#extensions#quickfix#quickfix_text
|
return g:airline#extensions#quickfix#quickfix_text
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user