mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.0.1136: W_WIDTH() is always the same
Problem: W_WIDTH() is always the same. Solution: Expand the macro.
This commit is contained in:
@@ -5777,13 +5777,13 @@ scroll_to_fraction(win_T *wp, int prev_height)
|
||||
*/
|
||||
wp->w_wrow = line_size;
|
||||
if (wp->w_wrow >= wp->w_height
|
||||
&& (W_WIDTH(wp) - win_col_off(wp)) > 0)
|
||||
&& (wp->w_width - win_col_off(wp)) > 0)
|
||||
{
|
||||
wp->w_skipcol += W_WIDTH(wp) - win_col_off(wp);
|
||||
wp->w_skipcol += wp->w_width - win_col_off(wp);
|
||||
--wp->w_wrow;
|
||||
while (wp->w_wrow >= wp->w_height)
|
||||
{
|
||||
wp->w_skipcol += W_WIDTH(wp) - win_col_off(wp)
|
||||
wp->w_skipcol += wp->w_width - win_col_off(wp)
|
||||
+ win_col_off2(wp);
|
||||
--wp->w_wrow;
|
||||
}
|
||||
|
Reference in New Issue
Block a user