mirror of
https://github.com/preservim/nerdtree.git
synced 2025-03-02 19:06:40 +08: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:
parent
bc55f3dda8
commit
c864c6e463
@ -1091,6 +1091,7 @@ The latest dev versions are on github
|
|||||||
Venteicher for the patch.
|
Venteicher for the patch.
|
||||||
- fix a bug where the cursor position/window size of the nerd tree buffer
|
- fix a bug where the cursor position/window size of the nerd tree buffer
|
||||||
wasnt being stored on closing the window, thanks to Richard Hart.
|
wasnt being stored on closing the window, thanks to Richard Hart.
|
||||||
|
- fix a bug where NERDTreeMirror would mirror the wrong tree
|
||||||
|
|
||||||
3.1.1
|
3.1.1
|
||||||
- fix a bug where a non-listed no-name buffer was getting created every
|
- fix a bug where a non-listed no-name buffer was getting created every
|
||||||
|
@ -2550,7 +2550,7 @@ function! s:initNerdTreeMirror()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let bufferName = options[keys(options)[choice-1]]
|
let bufferName = options[sort(keys(options))[choice-1]]
|
||||||
elseif len(keys(options)) ==# 1
|
elseif len(keys(options)) ==# 1
|
||||||
let bufferName = values(options)[0]
|
let bufferName = values(options)[0]
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user