Skip to content

Commit f061ad9

Browse files
committed
Silence "E95: Buffer with this name already exist" messages (issue #7)
1 parent 363c40d commit f061ad9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/session.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding
3-
" Last Change: September 18, 2011
3+
" Last Change: September 20, 2011
44
" URL: http://peterodding.com/code/vim/session/
55

6-
let g:xolox#session#version = '1.4.16'
6+
let g:xolox#session#version = '1.4.17'
77

88
" Public API for session persistence. {{{1
99

@@ -115,7 +115,7 @@ function! s:state_filter(line)
115115
if a:line == 'normal zo'
116116
" Silence "E490: No fold found" errors.
117117
return 'silent! normal zo'
118-
elseif a:line =~ '^file .\{-}[\\/]NERD_tree_\d$'
118+
elseif a:line =~ '^file .\{-}\<NERD_tree_\d\+$'
119119
" Silence "E95: Buffer with this name already exists" when restoring
120120
" mirrored NERDTree windows.
121121
return '" ' . a:line

0 commit comments

Comments
 (0)