mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
bugfix for NERDTreeMirror
when the user was prompted to choose a tree to mirror, it would mirror the wrong one
This commit is contained in:
@@ -2550,7 +2550,7 @@ function! s:initNerdTreeMirror()
|
||||
return
|
||||
endif
|
||||
|
||||
let bufferName = options[keys(options)[choice-1]]
|
||||
let bufferName = options[sort(keys(options))[choice-1]]
|
||||
elseif len(keys(options)) ==# 1
|
||||
let bufferName = values(options)[0]
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user