mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-03-03 12:37:56 +08:00
Merge pull request #656 from michamos/patch-1
Improve Quickfix window detection
This commit is contained in:
commit
4a2208821e
@ -25,7 +25,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, '\cQuickfix') > -1
|
||||||
return g:airline#extensions#quickfix#quickfix_text
|
return g:airline#extensions#quickfix#quickfix_text
|
||||||
else
|
else
|
||||||
return g:airline#extensions#quickfix#location_text
|
return g:airline#extensions#quickfix#location_text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user