Skip to content
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

fix: don't ignore at_edge for floating windows #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thenbe
Copy link
Contributor

@thenbe thenbe commented Jun 27, 2024

fixes #217

Before this PR, we never invoke the user's custom at_edge behavior for floating windows (see minimal repro). Instead, we return early.

This PR ensures that, for floating windows, we call handle_at_edge() just before returning early.

And since we now invoke that logic in two different places, I extracted it into its own function handle_at_edge(). So really, the only real of this PR is the additional logic introduced on line 410.

Off-topic

The noisy diff is largely due to the indentation change. Block out the noise using:

git config --global diff.colormoved dimmed-zebra
git config --global diff.colormovedws allow-indentation-change

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.

[Bug]: at_edge has no effect for floating windows when float_win_behavior = 'mux'
1 participant