Mercurial > vim
comparison src/cindent.c @ 31091:551ce1a137da v9.0.0880
patch 9.0.0880: preprocessor indenting is off
Commit: https://github.com/vim/vim/commit/161b6ac04f257ab17779e9ba6f5b3e3e15d2a0fd
Author: K.Takata <kentkt@csc.jp>
Date: Mon Nov 14 15:31:07 2022 +0000
patch 9.0.0880: preprocessor indenting is off
Problem: Preprocessor indenting is off.
Solution: Adjust preprocessor indentation. (Ken Takata, closes https://github.com/vim/vim/issues/11546)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Nov 2022 16:45:04 +0100 |
parents | d3058719eff5 |
children | b89cfd86e18e |
comparison
equal
deleted
inserted
replaced
31090:a681edbc4386 | 31091:551ce1a137da |
---|---|
4143 * Do C or expression indenting on the current line. | 4143 * Do C or expression indenting on the current line. |
4144 */ | 4144 */ |
4145 void | 4145 void |
4146 do_c_expr_indent(void) | 4146 do_c_expr_indent(void) |
4147 { | 4147 { |
4148 # ifdef FEAT_EVAL | 4148 #ifdef FEAT_EVAL |
4149 if (*curbuf->b_p_inde != NUL) | 4149 if (*curbuf->b_p_inde != NUL) |
4150 fixthisline(get_expr_indent); | 4150 fixthisline(get_expr_indent); |
4151 else | 4151 else |
4152 # endif | 4152 #endif |
4153 fixthisline(get_c_indent); | 4153 fixthisline(get_c_indent); |
4154 } | 4154 } |
4155 | 4155 |
4156 #if defined(FEAT_EVAL) || defined(PROTO) | 4156 #if defined(FEAT_EVAL) || defined(PROTO) |
4157 /* | 4157 /* |