Skip to content

Fixed stuck backstack on invalid entries - #4293

Open
TheVimDev wants to merge 2 commits into
sxyazi:mainfrom
TheVimDev:fixed_backstack
Open

Fixed stuck backstack on invalid entries#4293
TheVimDev wants to merge 2 commits into
sxyazi:mainfrom
TheVimDev:fixed_backstack

Conversation

@TheVimDev

Copy link
Copy Markdown

Which issue does this PR resolve?

Resolves #4292

Rationale of this PR

Upon every shift, be in backward or forward, there are now checks that check for validity. Furthermore, if an entry is found invalid, the entry is removed from the backtrace and nearby entries are checks for duplication. That prevent "no-op" situation where three entries would be A-X-A, X would be found invalid and now A-A would be next to each other. That would result in shift not doing anything, because it'd check the position from position A to A -> nothing would happen

Checklist

I did not use any LLM for anything at all. I looked at yazi to understand the problem, I wrote the code and tested it to check if it's working or not

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.

Shift backward and forward cause flickering when an item in a Backstack is not valid anymore (deleted/renamed)

1 participant