1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Escape filename in ShowInPreviewWin()

This commit is contained in:
Chesley Tan
2016-11-03 12:57:26 -04:00
parent 1287f63545
commit 8bbbb0530e

View File

@@ -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