diff --git a/autoload/airline/extensions/tabline/ctrlspace.vim b/autoload/airline/extensions/tabline/ctrlspace.vim index ed2139c..e2a1032 100644 --- a/autoload/airline/extensions/tabline/ctrlspace.vim +++ b/autoload/airline/extensions/tabline/ctrlspace.vim @@ -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 diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index 649579e..586c8a6 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -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 AirlineSelectTab1 :1tabn noremap AirlineSelectTab2 :2tabn noremap AirlineSelectTab3 :3tabn