[vim/vim] WinNew to provide window-ID (PR #11276)

9 views
Skip to first unread message

Sergey Vlasov

unread,
Oct 4, 2022, 7:20:48 AM10/4/22
to vim/vim, Subscribed

Fixed #10633.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/11276

Commit Summary

  • bdeab86 WinNew to provide window-ID

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/11276@github.com>

Bram Moolenaar

unread,
Oct 5, 2022, 2:35:56 PM10/5/22
to vim/vim, Subscribed

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.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/11276/c1268802550@github.com>

Sergey Vlasov

unread,
Oct 5, 2022, 4:06:56 PM10/5/22
to vim/vim, Subscribed

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


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/11276/c1268913387@github.com>

Sergey Vlasov

unread,
Oct 5, 2022, 4:06:57 PM10/5/22
to vim/vim, Subscribed

Closed #11276.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/11276/issue_event/7528173436@github.com>

Reply all
Reply to author
Forward
0 new messages