mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-10 14:01:52 +08:00
Merge pull request #656 from michamos/patch-1
Improve Quickfix window detection
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user