diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-01-25 15:12:33 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-01-26 09:53:15 +0000 |
commit | bb1efa85aa245b9d21f85fc541530be9f8d6dda4 (patch) | |
tree | 7ac908935c1191664106c0eb419f5de7401a74b3 | |
parent | b93bec68bcd681e06df4f977f4fef3b4ecff2555 (diff) | |
download | rneovim-bb1efa85aa245b9d21f85fc541530be9f8d6dda4.tar.gz rneovim-bb1efa85aa245b9d21f85fc541530be9f8d6dda4.tar.bz2 rneovim-bb1efa85aa245b9d21f85fc541530be9f8d6dda4.zip |
refactor(option.c): reduce scope or startarg
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 535e162e91..490ce07c44 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1418,8 +1418,6 @@ int do_set(char *arg, int opt_flags) } while (*arg != NUL) { // loop to process all options - char *startarg = arg; // remember for error message - if (strncmp(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3]) && !(opt_flags & OPT_MODELINE)) { // ":set all" show all options. @@ -1438,6 +1436,7 @@ int do_set(char *arg, int opt_flags) did_show = true; } } else { + char *startarg = arg; // remember for error message char *errmsg = NULL; char errbuf[80]; |