mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +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:
@@ -786,8 +786,7 @@ void curs_columns(win_T *wp, int may_scroll)
|
||||
} else {
|
||||
wp->w_wrow = wp->w_height_inner - 1 - wp->w_empty_rows;
|
||||
}
|
||||
} else if (wp->w_p_wrap
|
||||
&& wp->w_width_inner != 0) {
|
||||
} else if (wp->w_p_wrap && wp->w_width_inner != 0) {
|
||||
width = textwidth + win_col_off2(wp);
|
||||
|
||||
// long line wrapping, adjust wp->w_wrow
|
||||
@@ -1083,8 +1082,7 @@ bool scrolldown(long line_count, int byfold)
|
||||
* and move the cursor onto the displayed part of the window.
|
||||
*/
|
||||
int wrow = curwin->w_wrow;
|
||||
if (curwin->w_p_wrap
|
||||
&& curwin->w_width_inner != 0) {
|
||||
if (curwin->w_p_wrap && curwin->w_width_inner != 0) {
|
||||
validate_virtcol();
|
||||
validate_cheight();
|
||||
wrow += curwin->w_cline_height - 1 -
|
||||
|
Reference in New Issue
Block a user