scrollbar: allow to customize minimum window width

closes #2531
This commit is contained in:
Christian Brabandt committed 2022-05-05 23:09:33 +02:00
1 parent d421c35f94
commit 13628d698d
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@
scriptencoding utf-8
function! airline#extensions#scrollbar#calculate() abort
if winwidth(0) > 200 && get(w:, 'airline_active', 0)
if winwidth(0) > get(g:, 'airline#extensions#scrollbar#minwidth', 200)
\ && get(w:, 'airline_active', 0)
let overwrite = 0
if &encoding ==? 'utf-8' && !get(g:, 'airline_symbols_ascii', 0)
let [left, right, middle] = [ '|', '|', '█']