mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-05 02:53:21 +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#paste#symbol',
|
||||
\ get(g:, 'airline_paste_symbol', (exists('g:airline_powerline_fonts') ? ' ' : '').'PASTE'))
|
||||
\ get(g:, 'airline_paste_symbol', (get(g:, 'airline_powerline_fonts', 0) ? ' ' : '').'PASTE'))
|
||||
|
||||
function! airline#extensions#paste#get_mark()
|
||||
return &paste ? ' ' . s:symbol : ''
|
||||
|
||||
Reference in New Issue
Block a user