mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 07:10:59 +08:00
parent
a710cb99dd
commit
a6c04644ef
|
@ -95,6 +95,7 @@ endfunction
|
|||
function! airline#extensions#tabline#ctrlspace#get()
|
||||
let cur_buf = bufnr('%')
|
||||
|
||||
call airline#extensions#tabline#tabs#map_keys()
|
||||
let s:tab_list = ctrlspace#api#TabList()
|
||||
for tab in s:tab_list
|
||||
if tab.current
|
||||
|
|
|
@ -34,7 +34,7 @@ endfunction
|
|||
function! airline#extensions#tabline#tabs#get()
|
||||
let curbuf = bufnr('%')
|
||||
let curtab = tabpagenr()
|
||||
call s:map_keys()
|
||||
call airline#extensions#tabline#tabs#map_keys()
|
||||
if curbuf == s:current_bufnr && curtab == s:current_tabnr
|
||||
if !g:airline_detect_modified || getbufvar(curbuf, '&modified') == s:current_modified
|
||||
return s:current_tabline
|
||||
|
@ -94,7 +94,7 @@ function! airline#extensions#tabline#tabs#get()
|
|||
return s:current_tabline
|
||||
endfunction
|
||||
|
||||
function! s:map_keys()
|
||||
function! airline#extensions#tabline#tabs#map_keys()
|
||||
noremap <silent> <Plug>AirlineSelectTab1 :1tabn<CR>
|
||||
noremap <silent> <Plug>AirlineSelectTab2 :2tabn<CR>
|
||||
noremap <silent> <Plug>AirlineSelectTab3 :3tabn<CR>
|
||||
|
|
Loading…
Reference in New Issue
Block a user