fix(extui): hide inactive "more" window (#33831)

Problem:  More-window is left visible after leaving it. Cursor may be
          hidden behind it and it is hard to re-enter afterwards.
Solution: Close the more-window when another window is entered.
This commit is contained in:
luukvbaal
2025-05-04 13:39:07 +02:00
committed by GitHub
parent 627c648252
commit f1295fe76f
2 changed files with 15 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ function M.enable(opts)
-- Use MsgArea and hide search highlighting in the cmdline window.
-- TODO: Add new highlight group/namespaces for other windows? It is
-- clear MsgArea would be wanted in the box, more and prompt windows.
-- not clear if MsgArea is wanted in the box, more and prompt windows.
api.nvim_set_hl(ext.ns, 'Normal', { link = 'MsgArea' })
api.nvim_set_hl(ext.ns, 'Search', { link = 'MsgArea' })
api.nvim_set_hl(ext.ns, 'CurSearch', { link = 'MsgArea' })