diff options
| author | Max Coplan <mchcopl@gmail.com> | 2026-10-16 03:00:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-16 06:00:28 -0400 |
| commit | 1c91e5a7f0b1d47716c90d126f3e46c91ad0176e (patch) | |
| tree | c10a4fb6396a4ce0cd853c69c54984145109413d /test/functional/vimscript/executable_spec.lua | |
| parent | d10f02bdc9085adc8dbd9e208540dde0085fae7f (diff) | |
| download | rneovim-1c91e5a7f0b1d47716c90d126f3e46c91ad0176e.tar.gz rneovim-1c91e5a7f0b1d47716c90d126f3e46c91ad0176e.tar.bz2 rneovim-1c91e5a7f0b1d47716c90d126f3e46c91ad0176e.zip | |
fix(startup): respect --noplugin when used with --clean #42362
Problem:
When starting Nvim with both `--clean` and `--noplugin` (in either
order), `--noplugin` is silently ignored and built-in runtime plugins
are loaded anyway. `command_line_scan()` sets `p_lpl = false` for
`--noplugin`, and `--clean` sets `params.use_vimrc = "NONE"` and
`params.clean = true`, which later overwrites `p_lpl` back to `true` via
`p_lpl = vimrc_none ? params.clean : p_lpl`.
Solution:
Only reset `p_lpl = false` when `vimrc_none && !params.clean`,
preserving `p_lpl = false` if `--noplugin` was passed.
AI-assisted
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions