diff options
| author | bfredl <bjorn.linse@gmail.com> | 2026-08-06 14:18:57 +0200 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2026-08-10 13:26:51 +0200 |
| commit | 344ea602f655a7d22ab3567536fef0dda167d2ae (patch) | |
| tree | 8ab8c8ea2c72126e48a414998bacaf873e69fcc0 /runtime/plugin/python_setup.vim | |
| parent | 5287a04be4ed1736ae64ca990f10ffa1d430a0c0 (diff) | |
| download | rneovim-344ea602f655a7d22ab3567536fef0dda167d2ae.tar.gz rneovim-344ea602f655a7d22ab3567536fef0dda167d2ae.tar.bz2 rneovim-344ea602f655a7d22ab3567536fef0dda167d2ae.zip | |
refactor(ex_cmds): use function arguments for magic behavior
Now this was a cargo cult anti-pattern to write home about.
Doing painful save-and-restore bookkeeping around a separate
`magic_overruled` decoy global is just as messy as doing painful
save-and-restore logic around `p_magic` itself. only that now you need
to wrap every access to the effective value in a function call.
This replaces this with a marvellous new Clean Code techniqueâ„¢:
passing in the intended behavior as a function parameter to functions
where either the option or an explicit value might be used.
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions