Closed
Description
Description
I'm trying out vinegar mode and see that jump list behaves not as expect it to. I think we add a position there which becomes invalid after we do edit_in_place
. And it causes weird behavior.
Neovim version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Operating system and version
macOS 12.3
nvim-tree version
Minimal config
Default `nvt-min.lua` will do.
Steps to reproduce
touch file{1..3}
nvim -nu /tmp/nvt-min.lua
:clearjumps
:e file1
:e file2
:e file3
7.:lua require"nvim-tree".open_replacing_current_buffer()
- go to file1 and press
<c-e>
to open it. - verify that
:jumps
shows
:jumps
jump line col file/text
4 1 0
3 1 0 file2
2 1 0 file3
>
- Press
<c-o>
to go previous position in the jumplist. - I expect to jump to file3. But it jumps to file2, skipping file3.
- Now if you press
<c-i>
and you will go to thefile3
. Press it again and you will stay infile3
. Press it again and you will go tofile1
.
Expected behavior
Jump list behaves like a stack. Without skipping elements.
Actual behavior
Jump list looks curated.