aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2024-11-02 04:44:56 +0600
committerGitHub <noreply@github.com>2024-11-02 06:44:56 +0800
commitec0c53b3da5484f1068e476a477d3f96a0a1a811 (patch)
tree97125a7596ea46b9e2f55d6b694c2fc7cbce886c /test/functional/lua/vim_spec.lua
parent7bf3a616e18205d353d9c4a44e8c2f885d700129 (diff)
downloadrneovim-ec0c53b3da5484f1068e476a477d3f96a0a1a811.tar.gz
rneovim-ec0c53b3da5484f1068e476a477d3f96a0a1a811.tar.bz2
rneovim-ec0c53b3da5484f1068e476a477d3f96a0a1a811.zip
refactor(options): unify `put_set(num|bool|string)` (#30993)
Problem: There are three separate functions for printing the `:set` command for an setting an option to a file descriptor. These functions are used when creating the session file for an option. Having a function for each type increase code duplication and also makes it harder to add logic for new option types. Solution: Replace `put_set(num|bool|string)` with a single `put_set` function which works for all option types, this reduces code duplication and also makes it trivial to add support for more option types in the future.
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions