Skip to content

fix: don't restore the previous buffer when yazi is closed #845

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

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

mikavilpas
Copy link
Owner

fix: don't restore the previous buffer when yazi is closed

Sometimes when using vertical splits, I noticed that when yazi is
closed, one of the splits switches to a different buffer. I was unable
to reproduce this issue consistently, but I have had this happen every
once in a while for the last two weeks.

It seems like I added some logic to on_yazi_exited that restores the
previous buffer, but I don't think that's necessary - it does not seem
to be doing anything.

I'm hoping this will resolve the issue and not cause any (untested)
features to break, but I think it should be quite safe.

refactor(tests): fix missing argument warning

Did not cause any issues though

Did not cause any issues though
Sometimes when using vertical splits, I noticed that when yazi is
closed, one of the splits switches to a different buffer. I was unable
to reproduce this issue consistently, but I have had this happen every
once in a while for the last two weeks.

It seems like I added some logic to on_yazi_exited that restores the
previous buffer, but I don't think that's necessary - it does not seem
to be doing anything.

I'm hoping this will resolve the issue and not cause any (untested)
features to break, but I think it should be quite safe.
@mikavilpas mikavilpas merged commit 173d40f into main Mar 24, 2025
16 checks passed
@mikavilpas mikavilpas deleted the previous-buf branch March 24, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant