diff options
author | Famiu Haque <famiuhaque@proton.me> | 2023-12-07 00:40:48 +0600 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2023-12-07 19:36:34 +0000 |
commit | 9ae7d36ff5ebaf75597b442e10890bd77df01fbe (patch) | |
tree | 7211492e2fea8e9b87336c3ea69f4c5b2c0b8702 /test/functional/api/vim_spec.lua | |
parent | b2d471ab337e56f660eb7c89ae24f447f7b7a165 (diff) | |
download | rneovim-9ae7d36ff5ebaf75597b442e10890bd77df01fbe.tar.gz rneovim-9ae7d36ff5ebaf75597b442e10890bd77df01fbe.tar.bz2 rneovim-9ae7d36ff5ebaf75597b442e10890bd77df01fbe.zip |
refactor(options): split `get_option_value()` into smaller functions
Problem: Currently, `get_option_value()` returns 3 separate things: The actual value of the option, whether the option is hidden, and the option flags. This makes the function difficult to refactor, modify or otherwise reason about.
Solution: Split `get_option_value()` into 3 functions, each with a single purpose. This also affects `get_option_value_for()`.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions