bufferline: catch invalid modelines
This commit is contained in:
parent
999c40fcf3
commit
767c1efd10
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user