diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim index c8482d0..094fa0f 100644 --- a/lib/nerdtree/ui.vim +++ b/lib/nerdtree/ui.vim @@ -375,7 +375,7 @@ function! s:UI._stripMarkup(line, removeLeadingSpaces) let line = substitute (line, g:NERDTreeUI.MarkupReg(),"","") "strip off any read only flag - exec 'let line = substitute (line, " \\['.g:NERDTreeGlyphReadOnly.'\\]", "","")' + let line = substitute (line, ' \['.g:NERDTreeGlyphReadOnly.'\]', "","") "strip off any bookmark flags let line = substitute (line, ' {[^}]*}', "","")