mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-05-18 06:19:36 +08:00
Better toggling of powerline fonts
+ Check the value of airline_powerline_fonts not just existence
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
" vim: et ts=2 sts=2 sw=2
|
||||
|
||||
let s:symbol = get(g:, 'airline#extensions#readonly#symbol',
|
||||
\ get(g:, 'airline_readonly_symbol', exists('g:airline_powerline_fonts') ? '' : 'RO'))
|
||||
\ get(g:, 'airline_readonly_symbol', get(g:, 'airline_powerline_fonts', 0) ? '' : 'RO'))
|
||||
|
||||
function! airline#extensions#readonly#get_mark()
|
||||
return &ro ? s:symbol : ''
|
||||
|
||||
Reference in New Issue
Block a user