comparison src/drawscreen.c @ 26003:37852c2bf3d4 v8.2.3535

patch 8.2.3535: if-else indenting is confusing Commit: https://github.com/vim/vim/commit/9b0b844d252ea84b3607f39603b4afa8cb002418 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Mon Oct 18 20:56:39 2021 +0100 patch 8.2.3535: if-else indenting is confusing Problem: If-else indenting is confusing. Solution: Add curly brackets and indent. (Dominique Pell?, closes https://github.com/vim/vim/issues/9010)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Oct 2021 22:00:06 +0200
parents 637588377056
children a2e6da79274d
comparison
equal deleted inserted replaced
26002:c45e990847e5 26003:37852c2bf3d4
2303 #ifdef FEAT_FOLDING 2303 #ifdef FEAT_FOLDING
2304 if (hasFoldingWin(wp, l, NULL, &l, TRUE, NULL)) 2304 if (hasFoldingWin(wp, l, NULL, &l, TRUE, NULL))
2305 ++new_rows; 2305 ++new_rows;
2306 else 2306 else
2307 #endif 2307 #endif
2308 {
2308 #ifdef FEAT_DIFF 2309 #ifdef FEAT_DIFF
2309 if (l == wp->w_topline) 2310 if (l == wp->w_topline)
2310 new_rows += plines_win_nofill(wp, l, TRUE) 2311 new_rows += plines_win_nofill(wp, l, TRUE)
2311 + wp->w_topfill; 2312 + wp->w_topfill;
2312 else 2313 else
2313 #endif 2314 #endif
2314 new_rows += plines_win(wp, l, TRUE); 2315 new_rows += plines_win(wp, l, TRUE);
2316 }
2315 ++j; 2317 ++j;
2316 if (new_rows > wp->w_height - row - 2) 2318 if (new_rows > wp->w_height - row - 2)
2317 { 2319 {
2318 // it's getting too much, must redraw the rest 2320 // it's getting too much, must redraw the rest
2319 new_rows = 9999; 2321 new_rows = 9999;