aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-12-17 23:53:08 +0800
committerGitHub <noreply@github.com>2025-12-17 10:53:08 -0500
commit856391bc7fa982af5b8ee94d336c2e87ff83f970 (patch)
tree97177aec24bf633a62013166e93837882df9bc38 /test/functional/plugin
parent99e8b613760820199faac8ca101c5becd4b2374f (diff)
downloadrneovim-856391bc7fa982af5b8ee94d336c2e87ff83f970.tar.gz
rneovim-856391bc7fa982af5b8ee94d336c2e87ff83f970.tar.bz2
rneovim-856391bc7fa982af5b8ee94d336c2e87ff83f970.zip
fix(health): "q" keymap not set when health.style=float #37007
Problem: The q keymap is already set in open_floating_preview, so maparg('q') is not empty. Solution: Add a health.style check before setting the q keymap.
Diffstat (limited to 'test/functional/plugin')
-rw-r--r--test/functional/plugin/health_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index daa2acd5f3..036ede7820 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -88,6 +88,7 @@ describe(':checkhealth', function()
return vim.api.nvim_win_get_config(0).relative
]])
)
+ matches('health%.lua:%d+>$', fn.maparg('q', 'n', false, false))
-- gO should not close the :checkhealth floating window. #34784
command('checkhealth full_render')