From 93e6fa3d81cd2d38b9bec2c2341e10f519ab5948 Mon Sep 17 00:00:00 2001 From: Kevin Phair Date: Wed, 6 Oct 2021 15:11:03 -0400 Subject: [PATCH] fix catch not catching anything --- plugin/trackperlvars.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/trackperlvars.vim b/plugin/trackperlvars.vim index 841846c..e73e72d 100644 --- a/plugin/trackperlvars.vim +++ b/plugin/trackperlvars.vim @@ -389,7 +389,10 @@ function! TPV_track_perl_var () endif " Remove previous highlighting... - try | call matchdelete(s:match_id) | catch /./ | endtry + try + call matchdelete(s:match_id) + catch /./ + endtry " Locate a var under cursor... let cursline = getline('.')