mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-27 02:33:56 +08:00
Remove magic contant for skipped_tabs_marker in tabline calculation
This commit is contained in:
parent
2b0fe51f99
commit
d3ec54d42e
|
@ -104,7 +104,7 @@ function! airline#extensions#tabline#tabs#get()
|
||||||
let remaining_space = &columns - s:strchars(s:evaluate_tabline(b.build()))
|
let remaining_space = &columns - s:strchars(s:evaluate_tabline(b.build()))
|
||||||
|
|
||||||
let skipped_tabs_marker = get(g:, 'airline#extensions#tabline#overflow_marker', g:airline_symbols.ellipsis)
|
let skipped_tabs_marker = get(g:, 'airline#extensions#tabline#overflow_marker', g:airline_symbols.ellipsis)
|
||||||
let remaining_space -= 4 + 2 * s:strchars(s:evaluate_tabline(skipped_tabs_marker))
|
let remaining_space -= 2 * s:strchars(s:evaluate_tabline(skipped_tabs_marker))
|
||||||
|
|
||||||
" Add the current tab
|
" Add the current tab
|
||||||
let tab_title = s:get_title(tab_nr_type, curtab)
|
let tab_title = s:get_title(tab_nr_type, curtab)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user