]> granicus.if.org Git - vim/commitdiff
patch 8.2.3791: build error with +cindent but without +smartindent v8.2.3791
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Dec 2021 19:10:44 +0000 (19:10 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Dec 2021 19:10:44 +0000 (19:10 +0000)
Problem:    Build error with +cindent but without +smartindent.
Solution:   Move declaration of "do_cindent". (John Marriott)

src/change.c
src/version.c

index 04712144acbaac71329ad7e3e8e726a4e94da1c7..bfcb6ccda79d77245775b10820e2530fed3172b9 100644 (file)
@@ -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
index ec9ac322bc835bef6a0c2f282a43b5ff8dc387b7..c5e42883ae29a51a33945399e6222a5e12405131 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3791,
 /**/
     3790,
 /**/