bufferline: catch invalid modelines

This commit is contained in:
Christian Brabandt 2019-02-05 08:35:57 +01:00
parent 999c40fcf3
commit 767c1efd10
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ function! s:select_tab(buf_index)
catch /^Vim\%((\a\+)\)\=:E86/ catch /^Vim\%((\a\+)\)\=:E86/
" should not happen hopefully ;) " should not happen hopefully ;)
call airline#util#warning(printf("Buffer Number %d does not exist", a:buf_index)) call airline#util#warning(printf("Buffer Number %d does not exist", a:buf_index))
catch /^Vim\%((\a\+)\)\=:E518/
" invalid modeline
call airline#util#warning("Invalid modeline: ". v:exception)
catch catch
" catch all, something broken... :| " catch all, something broken... :|
call airline#util#warning("Exception not handled: ". v:exception) call airline#util#warning("Exception not handled: ". v:exception)