diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-10-16 11:56:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-16 05:56:41 -0400 |
| commit | 82e4c7f3d5ce08d2cb240a30eb7707a7fa2b3093 (patch) | |
| tree | e96143791e2b2ef47b3581ed02c6558a598373e2 /runtime | |
| parent | 45f83c70ee030f9f398b3db9c2e1dbaaf2880c72 (diff) | |
| download | rneovim-82e4c7f3d5ce08d2cb240a30eb7707a7fa2b3093.tar.gz rneovim-82e4c7f3d5ce08d2cb240a30eb7707a7fa2b3093.tar.bz2 rneovim-82e4c7f3d5ce08d2cb240a30eb7707a7fa2b3093.zip | |
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
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/lua/vim/health/health.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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.", |