comparison src/change.c @ 27758:5a8258fde1d9 v8.2.4405

patch 8.2.4405: compiler warning for unused variable without +folding Commit: https://github.com/vim/vim/commit/8329ab79b26be4c6c5766d80abae4a22385ee9e1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 16 21:51:00 2022 +0000 patch 8.2.4405: compiler warning for unused variable without +folding Problem: Compiler warning for unused variable without the +folding feature. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 23:00:04 +0100
parents 1f37e5082343
children 3f6c0a5c99bb
comparison
equal deleted inserted replaced
27757:070988082b56 27758:5a8258fde1d9
550 550
551 FOR_ALL_TAB_WINDOWS(tp, wp) 551 FOR_ALL_TAB_WINDOWS(tp, wp)
552 { 552 {
553 if (wp->w_buffer == curbuf) 553 if (wp->w_buffer == curbuf)
554 { 554 {
555 #ifdef FEAT_FOLDING
555 linenr_T last = lnume + xtra - 1; // last line after the change 556 linenr_T last = lnume + xtra - 1; // last line after the change
556 557 #endif
557 // Mark this window to be redrawn later. 558 // Mark this window to be redrawn later.
558 if (wp->w_redr_type < VALID) 559 if (wp->w_redr_type < VALID)
559 wp->w_redr_type = VALID; 560 wp->w_redr_type = VALID;
560 561
561 // Check if a change in the buffer has invalidated the cached 562 // Check if a change in the buffer has invalidated the cached