diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 14:50:10 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 15:21:39 +0800 |
commit | 7b5b7b3cc6306e9313dcf677f212cb132bd38aa0 (patch) | |
tree | 86affd4c94975a370bebbff9f119db2ae785bb8e /src/nvim/ex_cmds2.c | |
parent | 9777907467b29e890556db287b6a9995c0024896 (diff) | |
download | rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.tar.gz rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.tar.bz2 rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.zip |
vim-patch:8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 897928abec..e57dc5d13f 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1018,8 +1018,7 @@ void check_arg_idx(win_T *win) // We are editing the current entry in the argument list. // Set "arg_had_last" if it's also the last one win->w_arg_idx_invalid = false; - if (win->w_arg_idx == WARGCOUNT(win) - 1 - && win->w_alist == &global_alist) { + if (win->w_arg_idx == WARGCOUNT(win) - 1 && win->w_alist == &global_alist) { arg_had_last = true; } } @@ -1150,8 +1149,7 @@ void do_argfile(exarg_T *eap, int argn) } curwin->w_arg_idx = argn; - if (argn == ARGCOUNT - 1 - && curwin->w_alist == &global_alist) { + if (argn == ARGCOUNT - 1 && curwin->w_alist == &global_alist) { arg_had_last = true; } |