aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/python_setup.vim
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2026-08-06 14:18:57 +0200
committerbfredl <bjorn.linse@gmail.com>2026-08-10 13:26:51 +0200
commit344ea602f655a7d22ab3567536fef0dda167d2ae (patch)
tree8ab8c8ea2c72126e48a414998bacaf873e69fcc0 /runtime/plugin/python_setup.vim
parent5287a04be4ed1736ae64ca990f10ffa1d430a0c0 (diff)
downloadrneovim-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