]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1696: tabnr from getwininfo() for popup windows is always 0 v9.1.1696
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Tue, 26 Aug 2025 19:45:07 +0000 (21:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 26 Aug 2025 19:45:07 +0000 (21:45 +0200)
commit7d6be2cead4e58356387b52ab9587c079a167775
treeb9adc252baf64edc19582d5229987bf41d37759e
parent477c893c0abb69cc72ba6118cf3d6331943991df
patch 9.1.1696: tabnr from getwininfo() for popup windows is always 0

Problem:  getwininfo() has logic for getting the tabnr of a local popup
          window, but due to only breaking from the inner loop, tp is
          eventually set to NULL, so tabnr is always 0.
Solution: Break out of both loops, continue to use 0 for global popup
          windows (Sean Dewar).

closes: #18111

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalwindow.c
src/testdir/test_popupwin.vim
src/version.c