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

new splits don't invoke onSetActive #3563

Open
matthias314 opened this issue Dec 8, 2024 · 0 comments
Open

new splits don't invoke onSetActive #3563

matthias314 opened this issue Dec 8, 2024 · 0 comments

Comments

@matthias314
Copy link
Contributor

matthias314 commented Dec 8, 2024

Description of the problem or steps to reproduce

The callback function onSetActive is not called when creating a split, for example via hsplit or vsplit. In contrast, it is called when creating a new tab. I think it should also be called for new splits because the bufpane changes. When navigating between bufpanes with NextSplit, onSetActive is called.

For completeness, here is the function I used to check this:

function onSetActive(bp)
    micro.TermMessage("onSetActive <", bp.Buf.Path, "> <", bp.Buf.AbsPath, "> <", bp:Name(), ">")
    return true
end

ADDED: Also, when closing a tab (i.e., closing a bufpane in a tab without split), onSetActive is not called for the bufpane that is activated in the next tab.

Specifications

Commit hash: fb20818
OS: Ubuntu
Terminal: urxvt

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

No branches or pull requests

1 participant