From 767c1efd100dfb189e5719893ffb6c1329490357 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 5 Feb 2019 08:35:57 +0100 Subject: [PATCH] bufferline: catch invalid modelines --- autoload/airline/extensions/tabline/buffers.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 17aac7c..2810258 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -173,6 +173,9 @@ function! s:select_tab(buf_index) catch /^Vim\%((\a\+)\)\=:E86/ " should not happen hopefully ;) 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 all, something broken... :| call airline#util#warning("Exception not handled: ". v:exception)