From 03296da8dab8eb0cab29eaacb777a34e2a07e957 Mon Sep 17 00:00:00 2001 From: Henrique Sousa Date: Fri, 25 Oct 2019 10:29:23 +0100 Subject: [PATCH] Fix bug handling quotes on $tags - Non-ASCII chars are escaped before being sent to vim - Removed an ambiguous duplicated line --- plugin/ctags.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/ctags.vim b/plugin/ctags.vim index 4a779b7..19cc2ff 100644 --- a/plugin/ctags.vim +++ b/plugin/ctags.vim @@ -217,9 +217,9 @@ if has('perl') close (CTAGS); $lines .= $max_num; - $lines .= $max_num; + $tags = quotemeta($tags); - VIM::DoCommand("let b:tags = '$tags'"); + VIM::DoCommand(qq(let b:tags = "$tags")); VIM::DoCommand("let b:length = $length"); VIM::DoCommand("let b:lines = '$lines'"); PERL_EOF