-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot open lf after renaming the currently open file #24
Comments
This error also occurs if you delete the file. The working solution is to manually unload the buffer. |
I made a little change to the code, and it seems to resolve the problem. However, I am not sure whether this change will introduce any new unknown issues. Hi @lmburns , do you have some time to take a look at the change? |
@tanloong Wouldn't it make more sense to do a check around this line https://github.com/tanloong/lf.nvim/blob/ffd7e71fb090068931df50993e686140622995ec/lua/lf/main.lua#L157 What happens if you replace curfile with null? |
Is anyone able to fix this? This is a very annoying bug |
If you try renaming the currently open file then start
lf
, this error message shows up and you'll never be able to openlf
afterwards unless you restart Neovim, even if you switch to the newly created file or to other buffers:The text was updated successfully, but these errors were encountered: