fix: GetWinNum regex pattern. (#1409)

This commit is contained in:
Ali Rezvani 2024-02-11 16:27:41 +03:30 committed by GitHub
parent 60b5e602e9
commit bdf81a086d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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