diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-07-29 15:05:19 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-07-29 15:27:45 +0200 |
| commit | 1a755e4890c08542d9a93301b19d317f971f19e2 (patch) | |
| tree | e8cb364b01e25a895f65678eee1ae463773bbfdf /runtime/plugin/python_setup.vim | |
| parent | cb7c0191675454ed81be73aef6c08596b89d9985 (diff) | |
| download | rneovim-1a755e4890c08542d9a93301b19d317f971f19e2.tar.gz rneovim-1a755e4890c08542d9a93301b19d317f971f19e2.tar.bz2 rneovim-1a755e4890c08542d9a93301b19d317f971f19e2.zip | |
fix(options): latent codegen bug
Problem:
Latent bug from 7f6c14ed54a46e822b80134d39a89f97523a2706 (2015).
If an option default is "false" (`o.defaults.if_false = false`, e.g.
'fileignorecase'), codegen does not give it a `.def_val` on the platform
where its `#if` condition is undefined; it is zero-initialized.
This wasn't noticed until the parent commit, where zero value is
kObjectTypeNil, which `set_option_varp()` rejects.
Solution:
Check `if_false == nil` insteada of "falsey", so the `#else` branch gets
generated.
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions