mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
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.
4033c55eca
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user