mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-24 21:04:52 +08:00
fix: GetWinNum regex pattern. (#1409)
This commit is contained in:
parent
60b5e602e9
commit
bdf81a086d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user