Merge pull request #1183 from HarmtH/ctrlspace-clickbuf

update ctrlspace bufferline to use clickbuf()
This commit is contained in:
Christian Brabandt 2016-06-02 21:41:53 +02:00
commit 6c8f33f192

View File

@ -59,7 +59,7 @@ function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_t
let buf_name = '%(%{airline#extensions#tabline#get_buffer_name('.buffer.index.')}%)' let buf_name = '%(%{airline#extensions#tabline#get_buffer_name('.buffer.index.')}%)'
if has("tablineat") if has("tablineat")
let buf_name = '%'.buffer.index.'@airline#extensions#tabline#buffers#switchbuf@'.buf_name.'%X' let buf_name = '%'.buffer.index.'@airline#extensions#tabline#buffers#clickbuf@'.buf_name.'%X'
endif endif
call a:builder.add_section_spaced(group, buf_name) call a:builder.add_section_spaced(group, buf_name)