]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1123: popup hi groups not falling back to defaults v9.1.1123
authorYee Cheng Chin <ychin.git@gmail.com>
Thu, 20 Feb 2025 20:58:21 +0000 (21:58 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 20 Feb 2025 20:58:21 +0000 (21:58 +0100)
commite700ddeea4a29a724d04ff32b57c327ee55ce065
tree16e2ae0ebf9068c396b78aae29641ae647b4dc99
parent911742a975caf69c1e35a866288f58450eb476cd
patch 9.1.1123: popup hi groups not falling back to defaults

Problem:  Highlight groups PopupSelected/PopupNotification/
          MessageWindow are supposed to fall back to default highlight
          groups if they are not defined. However, once a colorscheme
          has defined them, switching to another colorscheme that
          doesn't do so will leave behind a cleared colorscheme, which
          causes the fallback to fail.

Solution: Set up default links to the relevant fallback highlight
          groups, which makes sure a `:hi clear` command will reset the
          state properly (Yee Cheng Chin).

closes: #16676

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/popup.txt
runtime/doc/syntax.txt
runtime/doc/tags
src/highlight.c
src/popupwin.c
src/testdir/dumps/Test_popupwin_notify_02.dump
src/version.c