-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming a file open in a hidden buffer blanks the buffer #371
Comments
Please write a step by step procedure to reproduce your situation. |
Vanilla Neovim v0.5.0 + latest Fern
|
Thanks for the procedure. Unfortunately, I could not reproduce your situation with that procedure. Kapture.2021-10-09.at.17.51.18.mp4Please provide me a minimal vimrc to reproduce the situation. Please make it minimal |
Oh, that is puzzling. Thanks for looking into this. I ran my test with neovim + Fern (ed2e422) with an empty init.vim and no other plugins installed. I also tried vim with the same result. I started digging into this a bit last week. ealang@1e20482 I noticed removing My thinking was that with I hit the same issue with these steps (mimics what Fern is doing):
|
Reproduced. I'll investigate. |
Your change ( |
If I make some changes (again with Opened #373 |
I'm sorry I don't get it. Could you write step by step procedure to reproduce E37? I'd love to know if that's normal situation or so on. |
Getting an E37 without the
Fern will fail to run It doesn't seem like a normal situation, but idk. I didn't know it was possible until I read the
|
I actually hadn't really understood the behavior of Well, I think it's a kind of situation that we should care... I'll think about workarounds (or anybody?) |
Oops. So |
Correct, with the buffer! I don't get a E37. I can't find any drawbacks based on some testing. My interpretation of the |
I see. Ok, let's merge #373 and see what's happen then 👍 |
Released as https://github.com/lambdalisue/fern.vim/releases/tag/v1.38.4 |
Hi, thanks for the great plugin!
I came across one issue with renames and hidden buffers. If you rename a file open in a hidden buffer, then navigate back to the buffer, the buffer is now empty until you reload it (e.g. with ":e"). Runs the risk of accidentally writing the empty buffer to disk. The buffer appears to get renamed correctly, but the contents are gone. No issue with visible buffers.
The text was updated successfully, but these errors were encountered: