diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-29 18:02:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 18:02:43 -0500 |
commit | ad98b84008586a1863e8b05b3db6d2c6c7ad4db8 (patch) | |
tree | 836ddf9beab731ee4bf72cb914f115ebbe5ef139 /src/nvim/ex_docmd.c | |
parent | 8950f4e94af1534852cab5f41066d7c21330bd64 (diff) | |
parent | 1376994f1556b51d6a4feaedc094ee2456db5d06 (diff) | |
download | rneovim-ad98b84008586a1863e8b05b3db6d2c6c7ad4db8.tar.gz rneovim-ad98b84008586a1863e8b05b3db6d2c6c7ad4db8.tar.bz2 rneovim-ad98b84008586a1863e8b05b3db6d2c6c7ad4db8.zip |
Merge pull request #13833 from janlazo/vim-8.2.2412
vim-patch:8.2.{2412,2418,2420,2425}
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 18683c54d3..8b00417ce3 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -317,7 +317,9 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline, int count = 0; /* line number count */ int did_inc = FALSE; /* incremented RedrawingDisabled */ int retval = OK; - cstack_T cstack; // conditional stack + cstack_T cstack = { // conditional stack + .cs_idx = -1, + }; garray_T lines_ga; // keep lines for ":while"/":for" int current_line = 0; // active line in lines_ga char_u *fname = NULL; // function or script name @@ -360,11 +362,6 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline, call_depth++; start_batch_changes(); - cstack.cs_idx = -1; - cstack.cs_looplevel = 0; - cstack.cs_trylevel = 0; - cstack.cs_emsg_silent_list = NULL; - cstack.cs_lflags = 0; ga_init(&lines_ga, (int)sizeof(wcmd_T), 10); real_cookie = getline_cookie(fgetline, cookie); |