diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-07 18:28:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 18:28:34 -0500 |
commit | 02a3c417945e7b7fc781906a78acbf88bd44c971 (patch) | |
tree | 16f255fcf66a50ceea661e08cbea7ce965c46e7c /src/nvim/main.c | |
parent | a7d9df996dc1c353574845563216dc0372dd8b77 (diff) | |
parent | d34846af7455b8411476700920cdb64f121bae69 (diff) | |
download | rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.gz rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.bz2 rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.zip |
Merge pull request #13898 from janlazo/set_string_option_direct
Refactor option,var functions to use char for param type
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 9f71df3a46..7064f2a068 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1404,9 +1404,9 @@ static void load_plugins(void) static void handle_quickfix(mparm_T *paramp) { if (paramp->edit_type == EDIT_QF) { - if (paramp->use_ef != NULL) - set_string_option_direct((char_u *)"ef", -1, - paramp->use_ef, OPT_FREE, SID_CARG); + if (paramp->use_ef != NULL) { + set_string_option_direct("ef", -1, paramp->use_ef, OPT_FREE, SID_CARG); + } vim_snprintf((char *)IObuff, IOSIZE, "cfile %s", p_ef); if (qf_init(NULL, p_ef, p_efm, true, IObuff, p_menc) < 0) { msg_putchar('\n'); |