-
Notifications
You must be signed in to change notification settings - Fork 332
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
Redraw window after delete #792
Comments
@snprajwal We do actually load directories after delete in here which should also trigger a redraw but I think this happened to me as well. It would help if there is a way to consistently produce this. If this is happening due to modification times not updating, there may not be much we can do about it. |
Came here to report this bug and found this issue. Yeah, it's very hard to reproduce it consistently, but it happens way too often not to notice. Also, setting |
I also noticed that the window never redraws for me when deleting file with :delete and found this issue. I am on r27 on WIndows. Anyone got a workaround for this? |
I managed to reproduce this consistently while I was working on some AUR packages (by accident). This is my config: https://github.com/karabaja4/arch/blob/master/lf/lfrc
but instead, the following are (incorrectly) listed:
YouTube video with the above procedure shown: https://www.youtube.com/watch?v=_8jA08Ln7zk I can reproduce it 100% of the time. |
Same issue here. On macOS 13.4 (22F66), while browsing an SMB share, lf 30 doesn't refresh the file after deleting or moving a file or folder. I have to do a manual If there's any data I can provide you with to home in on the issue, make sure to let me know. |
Good news, I managed to reproduce the scenario given in #792 (comment). The issue happens on version r30 even without any custom user configuration. So the steps can be simplified to:
After some debugging I found that when the files are deleted, the directory is
The above sequence of events is very complex because it involves multiple threads, hopefully the code snippets below will help to explain: Starting point for the Lines 1168 to 1185 in 027538e
Implementation of the
Part of the
Anyway I think this issue can be solved simply by deleting the first |
Please note that this sounds like a completely different issue. The issue that's being discussed here is that sometimes, very intermittently, lf doesn't update the files after a delete in a local folder, in scenarios described and solved by joelim-work above (thank you joelim!). Files not being updated after the delete in a remote SMB folder (which sounds like an issue that can be observed 100% of the time) sounds like a different issue altogether, so it may be worth opening a new issue with a detailed description. |
Maybe. As soon as a new release with the above changes is available, we'll see. From the issue description this race condition may actually be triggered 100% of the time on slower file systems like an SMB share. |
Many times, after deletion, files/folders are still visible. The window should be refreshed and redrawn after the delete action is completed
The text was updated successfully, but these errors were encountered: