Skip to content

Commit bdf81a0

Browse files
authored
fix: GetWinNum regex pattern. (#1409)
1 parent 60b5e60 commit bdf81a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nerdtree/nerdtree.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function! s:NERDTree.GetWinNum()
144144

145145
" If WindowTree, there is no t:NERDTreeBufName variable. Search all windows.
146146
for w in range(1,winnr('$'))
147-
if bufname(winbufnr(w)) =~# '^' . g:NERDTreeCreator.BufNamePrefix() . '\d\+$'
147+
if bufname(winbufnr(w)) =~# '^' . g:NERDTreeCreator.BufNamePrefix() . 'win_\d\+$'
148148
return w
149149
endif
150150
endfor

0 commit comments

Comments
 (0)