mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 07:59:33 +08:00
Rename parameters for better readability
This commit is contained in:
parent
92bf1b0b39
commit
ac799f6021
|
@ -25,10 +25,8 @@ function! airline#extensions#tabline#ctrlspace#invalidate()
|
|||
let s:current_tabnr = -1
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_tab, cur_buf, pos)
|
||||
let pos_extension = (a:pos == 0)
|
||||
\ ? ''
|
||||
\ : '_right'
|
||||
function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_tab, cur_buf, pull_right)
|
||||
let pos_extension = (a:pull_right ? '_right' : '')
|
||||
|
||||
let s:buffer_list = ctrlspace#api#BufferList(a:cur_tab)
|
||||
" add by tenfy(tenfyzhong@qq.com)
|
||||
|
@ -71,10 +69,8 @@ function! airline#extensions#tabline#ctrlspace#add_buffer_section(builder, cur_t
|
|||
return 1
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#ctrlspace#add_tab_section(builder, pos)
|
||||
let pos_extension = (a:pos == 0)
|
||||
\ ? ''
|
||||
\ : '_right'
|
||||
function! airline#extensions#tabline#ctrlspace#add_tab_section(builder, pull_right)
|
||||
let pos_extension = (a:pull_right ? '_right' : '')
|
||||
|
||||
for tab in s:tab_list
|
||||
if tab.current
|
||||
|
|
Loading…
Reference in New Issue
Block a user