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

WinNew to provide window-ID #11276

Closed
wants to merge 1 commit into from
Closed

Conversation

noscript
Copy link
Contributor

@noscript noscript commented Oct 4, 2022

Fixed #10633.

@brammool
Copy link
Contributor

brammool commented Oct 5, 2022

Matching the new window ID in the pattern does not appear useful, since the ID is not known yet. Only once the window exists you can use the window ID, that is why it works with WinClose.
The proposed tests only show a pattern that guesses the next window ID, I cannot think of a practical use for this.

To get the window ID in the WinNew autocommand win_getid() can be used.

@noscript
Copy link
Contributor Author

noscript commented Oct 5, 2022

True, from perspective of ID matching this doesn't make sense. Somehow I forgot about win_getid().

@noscript noscript closed this Oct 5, 2022
@noscript noscript deleted the winnew_provide_winid branch October 6, 2022 18:38
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.

WinNew to provide window-ID
2 participants