diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-01-25 15:19:11 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-01-26 10:01:59 +0000 |
commit | a13e97ece52a4b6dccda08ec88c035306fd6d24a (patch) | |
tree | 5db0f70933a888c06cc4ccf6b7d95063746aec4c /src | |
parent | bb1efa85aa245b9d21f85fc541530be9f8d6dda4 (diff) | |
download | rneovim-a13e97ece52a4b6dccda08ec88c035306fd6d24a.tar.gz rneovim-a13e97ece52a4b6dccda08ec88c035306fd6d24a.tar.bz2 rneovim-a13e97ece52a4b6dccda08ec88c035306fd6d24a.zip |
refactor(option.c): int -> bool
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 490ce07c44..8df3063fec 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1412,7 +1412,7 @@ int do_set(char *arg, int opt_flags) bool did_show = false; // already showed one value if (*arg == NUL) { - showoptions(0, opt_flags); + showoptions(false, opt_flags); did_show = true; goto theend; } @@ -1432,7 +1432,7 @@ int do_set(char *arg, int opt_flags) ui_refresh_options(); redraw_all_later(UPD_CLEAR); } else { - showoptions(1, opt_flags); + showoptions(true, opt_flags); did_show = true; } } else { @@ -3124,11 +3124,11 @@ static int find_key_option(const char *arg, bool has_lt) return find_key_option_len(arg, strlen(arg), has_lt); } -/// if 'all' == 0: show changed options -/// if 'all' == 1: show all normal options +/// if 'all' == false: show changed options +/// if 'all' == true: show all normal options /// /// @param opt_flags OPT_LOCAL and/or OPT_GLOBAL -static void showoptions(int all, int opt_flags) +static void showoptions(bool all, int opt_flags) { #define INC 20 #define GAP 3 |