From 57b6da6d120010866ec3de54fce01939eaffab34 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Date: Wed, 28 Sep 2011 21:19:41 -0300 Subject: [PATCH] Fixes E803 ID not found spam --- autoload/indent_guides.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index e048ac0..11b90de 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -70,7 +70,11 @@ function! indent_guides#clear_matches() if !empty(w:indent_guides_matches) let l:index = 0 for l:match_id in w:indent_guides_matches - call matchdelete(l:match_id) + try + call matchdelete(l:match_id) + catch /E803:/ + " Do nothing + endtry call remove(w:indent_guides_matches, l:index) let l:index += l:index endfor