mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 07:23:49 -05:00
retrieve the width of the window from g:lightline if available (for injection from the tests)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline.vim
|
" Filename: autoload/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2016/03/20 00:53:38.
|
" Last Change: 2016/03/20 00:56:45.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -457,7 +457,7 @@ function! lightline#tabline() abort
|
|||||||
return s:tabline
|
return s:tabline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:winwidth = winwidth(0)
|
let s:winwidth = get(get(g:, 'lightline', {}), 'winwidth', winwidth(0))
|
||||||
function! lightline#tabs() abort
|
function! lightline#tabs() abort
|
||||||
let [x, y, z] = [[], [], []]
|
let [x, y, z] = [[], [], []]
|
||||||
let nr = tabpagenr()
|
let nr = tabpagenr()
|
||||||
|
|||||||
Reference in New Issue
Block a user