mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
fix: GetWinNum regex pattern. (#1409)
This commit is contained in:
@@ -144,7 +144,7 @@ function! s:NERDTree.GetWinNum()
|
|||||||
|
|
||||||
" If WindowTree, there is no t:NERDTreeBufName variable. Search all windows.
|
" If WindowTree, there is no t:NERDTreeBufName variable. Search all windows.
|
||||||
for w in range(1,winnr('$'))
|
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
|
return w
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user