Closed MJB47 closed 2 years ago
Hey @MJB47 thanks for the issue submission. This line is likely the culprit. https://github.com/rmagatti/goto-preview/blob/37116fb5167d2a93cada8db9135c5032a25348a7/lua/goto-preview/lib.lua#L130
It's setting bufhidden
to wipe
for the buffer. So when you leave it it wipes that buffer from the buffer list.
I'll have to think about how to solve this
closed with the merging of the above
Describe the bug If I preview the definition of something that is defined in the same file, and then close the preview, and then navigate to another buffer, the original buffer I was editing closes and no longer shows up in
:ls
All key mappings are assuming the defaults.
To Reproduce Steps to reproduce the behaviour: In a file that both defines a new object and refers to that defined object:
gpd
gP
2a. Note at this stage that:ls
still shows the parent buffer.:bn
(or any other way you like):ls
no longer shows the buffer,:bp
and<C-^>
cant return to it, the latter displaying "E23: No alternate file`Expected behavior The buffer I was editing/previewing from would still exist and be navigable to with
<C-^>
.Baseline (please complete the following information):