From 8bbbb0530eac0b2638bd8b667729d9743ab0f7fe Mon Sep 17 00:00:00 2001 From: Chesley Tan Date: Thu, 3 Nov 2016 12:57:26 -0400 Subject: [PATCH] Escape filename in ShowInPreviewWin() --- autoload/tagbar.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 74c86a0..9e67f74 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3255,7 +3255,8 @@ function! s:ShowInPreviewWin() abort " explicitly before the :psearch below to better control its positioning. if !pwin_open silent execute - \ g:tagbar_previewwin_pos . ' pedit ' . taginfo.fileinfo.fpath + \ g:tagbar_previewwin_pos . ' pedit ' . + \ fnameescape(taginfo.fileinfo.fpath) if g:tagbar_vertical != 0 silent execute 'vertical resize ' . g:tagbar_width endif