neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit b93bec68bcd681e06df4f977f4fef3b4ecff2555
parent 3ae3e47d541db6e2cbf7c42b1ccce9cf48b0e4c9
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Wed, 25 Jan 2023 15:06:32 +0000

refactor(option.c): reduce scope or errbuf

Diffstat:
Msrc/nvim/option.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nvim/option.c b/src/nvim/option.c @@ -1417,8 +1417,6 @@ int do_set(char *arg, int opt_flags) goto theend; } - char errbuf[80]; - while (*arg != NUL) { // loop to process all options char *startarg = arg; // remember for error message @@ -1441,6 +1439,8 @@ int do_set(char *arg, int opt_flags) } } else { char *errmsg = NULL; + char errbuf[80]; + do_set_option(opt_flags, &arg, &did_show, errbuf, sizeof(errbuf), &errmsg); // Advance to next argument.