diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-12 19:10:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-12 19:10:44 +0000 |
commit | d2439e0443ee26931ab93874c05cc7f57e9af93d (patch) | |
tree | 16121f3ce935de410dfc3bffe4b4680cf56277ca /src/change.c | |
parent | 3bb79dc191a1dec14606b1b94b968a6808906700 (diff) |
patch 8.2.3791: build error with +cindent but without +smartindentv8.2.3791
Problem: Build error with +cindent but without +smartindent.
Solution: Move declaration of "do_cindent". (John Marriott)
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/change.c b/src/change.c index 04712144ac..bfcb6ccda7 100644 --- 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 |