Disable tabline refresh per configuration
fixes #1049 and should prevent that users see AirlineTabRefresh printed on their screen.
This commit is contained in:
parent
adbfda43f8
commit
0e70dac030
|
@ -42,6 +42,9 @@ function! s:toggle_on()
|
|||
endfunction
|
||||
|
||||
function! s:update_tabline()
|
||||
if get(g:, 'airline#extensions#tabline#disable_refresh', 0)
|
||||
return
|
||||
endif
|
||||
let match = expand('<afile>')
|
||||
if pumvisible()
|
||||
return
|
||||
|
|
|
@ -521,12 +521,12 @@ eclim <https://eclim.org>
|
|||
buffer on the left. Also none of the above tabline switches is currently
|
||||
supported!
|
||||
|
||||
* rename label for buffers (default: 'buffers')
|
||||
* rename label for buffers (default: 'buffers') >
|
||||
let g:airline#extensions#tabline#buffers_label = 'b'
|
||||
|
||||
* rename label for tabs (default: 'tabs')
|
||||
* rename label for tabs (default: 'tabs') >
|
||||
let g:airline#extensions#tabline#tabs_label = 't'
|
||||
|
||||
<
|
||||
When enabled, numbers will be displayed in the tabline and mappings will be
|
||||
exposed to allow you to select a buffer directly. Up to 9 mappings will be
|
||||
exposed. >
|
||||
|
@ -571,7 +571,7 @@ eclim <https://eclim.org>
|
|||
* configure whether buffer numbers should be shown. >
|
||||
let g:airline#extensions#tabline#buffer_nr_show = 0
|
||||
<
|
||||
* configure how buffer numbers should be formatted with |printf|. >
|
||||
* configure how buffer numbers should be formatted with |printf()|. >
|
||||
let g:airline#extensions#tabline#buffer_nr_format = '%s: '
|
||||
<
|
||||
* configure the formatting of filenames (see |filename-modifiers|). >
|
||||
|
@ -623,6 +623,11 @@ eclim <https://eclim.org>
|
|||
<
|
||||
Note: Enabling this extension will modify 'showtabline' and 'guioptions'.
|
||||
|
||||
* enable Refresh of tabline buffers on |BufAdd| autocommands
|
||||
(set this to one, if you note 'AirlineTablineRefresh', however, this
|
||||
won't update airline on |:badd| commands) >
|
||||
let airline#extensions#tabline#disable_refresh = 0
|
||||
|
||||
------------------------------------- *airline-tmuxline*
|
||||
tmuxline <https://github.com/edkolev/tmuxline.vim>
|
||||
|
||||
|
|
Loading…
Reference in New Issue