From 82e4c7f3d5ce08d2cb240a30eb7707a7fa2b3093 Mon Sep 17 00:00:00 2001 From: Volodymyr Chernetskyi Date: Fri, 16 Oct 2026 11:56:41 +0200 Subject: fix(health): report when 'paste' is enabled #42389 Problem: The configuration check compares the boolean 'paste' option to 1, so it never reports that the option is enabled. Solution: Check the boolean value directly and cover enabled and disabled states. AI-assisted --- runtime/lua/vim/health/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua index eaab33cf34..0bec0220c6 100644 --- a/runtime/lua/vim/health/health.lua +++ b/runtime/lua/vim/health/health.lua @@ -135,7 +135,7 @@ local function check_config() ) end - if vim.o.paste == 1 then + if vim.o.paste then ok = false health.error( "'paste' is enabled. This option is only for pasting text.\nIt should not be set in your config.", -- cgit