diff options
author | Famiu Haque <famiuhaque@proton.me> | 2024-11-02 04:44:56 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-02 06:44:56 +0800 |
commit | ec0c53b3da5484f1068e476a477d3f96a0a1a811 (patch) | |
tree | 97125a7596ea46b9e2f55d6b694c2fc7cbce886c /src/nvim/lua/executor.c | |
parent | 7bf3a616e18205d353d9c4a44e8c2f885d700129 (diff) | |
download | rneovim-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 'src/nvim/lua/executor.c')
0 files changed, 0 insertions, 0 deletions