# HG changeset patch # User Bram Moolenaar # Date 1639336502 -3600 # Node ID c37950e3d74071de629a75155cb6e21cbec34b66 # Parent 8f540a0b2c23a3c612a8262a72b4b4a89c471b6b patch 8.2.3791: build error with +cindent but without +smartindent Commit: https://github.com/vim/vim/commit/d2439e0443ee26931ab93874c05cc7f57e9af93d Author: Bram Moolenaar Date: Sun Dec 12 19:10:44 2021 +0000 patch 8.2.3791: build error with +cindent but without +smartindent Problem: Build error with +cindent but without +smartindent. Solution: Move declaration of "do_cindent". (John Marriott) diff --git a/src/change.c b/src/change.c --- a/src/change.c +++ b/src/change.c @@ -1388,6 +1388,9 @@ open_line( char_u *p; int saved_char = NUL; // init for GCC pos_T *pos; +#ifdef FEAT_CINDENT + int do_cindent; +#endif #ifdef FEAT_SMARTINDENT int do_si = (!p_paste && curbuf->b_p_si # ifdef FEAT_CINDENT @@ -1397,9 +1400,6 @@ open_line( && *curbuf->b_p_inde == NUL # endif ); -#ifdef FEAT_CINDENT - int do_cindent; -#endif int no_si = FALSE; // reset did_si afterwards int first_char = NUL; // init for GCC #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3791, +/**/ 3790, /**/ 3789,