Mercurial > vim
comparison src/drawscreen.c @ 32361:9ac987a467d5 v9.0.1512
patch 9.0.1512: inserting lines when scrolling with 'smoothscroll' set
Commit: https://github.com/vim/vim/commit/c8502f9b880b6d23baa4f9d28b60e1ceb442e35f
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Sat May 6 12:40:15 2023 +0100
patch 9.0.1512: inserting lines when scrolling with 'smoothscroll' set
Problem: Inserting lines when scrolling with 'smoothscroll' set.
Solution: Adjust line height computation for w_skipcol. (Luuk van Baal,
closes #12350)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 May 2023 13:45:04 +0200 |
parents | bb797331e21b |
children | 0632606a2530 |
comparison
equal
deleted
inserted
replaced
32360:d0c44a70b750 | 32361:9ac987a467d5 |
---|---|
2325 else | 2325 else |
2326 #endif | 2326 #endif |
2327 { | 2327 { |
2328 #ifdef FEAT_DIFF | 2328 #ifdef FEAT_DIFF |
2329 if (l == wp->w_topline) | 2329 if (l == wp->w_topline) |
2330 new_rows += plines_win_nofill(wp, l, TRUE) | 2330 { |
2331 + wp->w_topfill; | 2331 int n = plines_win_nofill(wp, l, FALSE) |
2332 + wp->w_topfill; | |
2333 n = adjust_plines_for_skipcol(wp, n); | |
2334 if (n > wp->w_height) | |
2335 n = wp->w_height; | |
2336 new_rows += n; | |
2337 } | |
2332 else | 2338 else |
2333 #endif | 2339 #endif |
2334 new_rows += plines_win(wp, l, TRUE); | 2340 new_rows += plines_win(wp, l, TRUE); |
2335 } | 2341 } |
2336 ++j; | 2342 ++j; |