-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Wrong display with 'smoothscroll' when FEAT_DIFF is disabled #18649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1a1057d to
ed12707
Compare
| { | ||
| #ifdef FEAT_DIFF | ||
| if (l == wp->w_topline) | ||
| { | ||
| int n = plines_win_nofill(wp, l, FALSE) | ||
| + wp->w_topfill; | ||
| n -= adjust_plines_for_skipcol(wp); | ||
| if (n > wp->w_height) | ||
| n = wp->w_height; | ||
| new_rows += n; | ||
| } | ||
| else | ||
| #endif | ||
| new_rows += plines_win(wp, l, TRUE); | ||
| } | ||
| new_rows += plines_correct_topline(wp, l, TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The effect of limit_winheight is a bit different when using plines_correct_topline(), but it doesn't matter here, as when line height (including or excluding filler lines) exceeds w_height, the new_rows > wp->w_height - row - 2 condition below will be true, and new_rows will be overwritten.
|
Do you have a test which shows this behaviour? |
|
The existing tests already cover this. Build without FEAT_DIFF and run test_scroll_opt. |
Problem: Wrong display with 'smoothscroll' when FEAT_DIFF is disabled. Solution: Use plines_correct_topline().
ed12707 to
9fbf539
Compare
|
Ah, okay got it. Thanks |
Problem: Wrong display with 'smoothscroll' when FEAT_DIFF is disabled. Solution: Use plines_correct_topline() (zeertzjq). closes: vim/vim#18649 vim/vim@e06e70f
) Problem: Wrong display with 'smoothscroll' when FEAT_DIFF is disabled. Solution: Use plines_correct_topline() (zeertzjq). closes: vim/vim#18649 vim/vim@e06e70f
Problem: Wrong display with 'smoothscroll' when FEAT_DIFF is disabled.
Solution: Use plines_correct_topline().