Merge pull request #576 from mike-zueff/read-only_files_opening_fix

Read-only files opening fix
This commit is contained in:
Martin Grenfell 2016-05-11 16:02:01 +01:00
commit 5294593b14

View File

@ -375,7 +375,7 @@ function! s:UI._stripMarkup(line, removeLeadingSpaces)
let line = substitute (line, g:NERDTreeUI.MarkupReg(),"","") let line = substitute (line, g:NERDTreeUI.MarkupReg(),"","")
"strip off any read only flag "strip off any read only flag
exec 'let line = substitute (line, " \['.g:NERDTreeGlyphReadOnly.'\]", "","")' exec 'let line = substitute (line, " \\['.g:NERDTreeGlyphReadOnly.'\\]", "","")'
"strip off any bookmark flags "strip off any bookmark flags
let line = substitute (line, ' {[^}]*}', "","") let line = substitute (line, ' {[^}]*}', "","")