mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-12 15:50:13 +08:00
[add] winwidth's test
This commit is contained in:
1 parent
ab4962b838
commit
51c79f61f4
2 files changed
+15
-1
No files matched your search
@@ -16,7 +16,7 @@ let s:focusgained_ignore_time = 0
|
||||
" TODO: Try to cache winwidth(0) function
|
||||
" e.g. store winwidth per window and access that, only update it, if the size
|
||||
" actually changed.
|
||||
function! airline#util#winwidth(...)
|
||||
function! airline#util#winwidth(...) abort
|
||||
let nr = get(a:000, 0, 0)
|
||||
if get(g:, 'airline_statusline_ontop', 0)
|
||||
return &columns
|
||||
|
||||
Reference in new issue
Block a user