Skip to content

Commit

Permalink
fix: GetWinNum regex pattern. (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa authored Feb 11, 2024
1 parent 60b5e60 commit bdf81a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerdtree/nerdtree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function! s:NERDTree.GetWinNum()

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

0 comments on commit bdf81a0

Please sign in to comment.