Mercurial > vim
comparison src/ops.c @ 30859:e4240d068787 v9.0.0764
patch 9.0.0764: indent and option tests fail
Commit: https://github.com/vim/vim/commit/c8b673557390e5cd20bc0a4c2786d0db1d77a24c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 16:41:53 2022 +0100
patch 9.0.0764: indent and option tests fail
Problem: Indent and option tests fail.
Solution: Change OP_INDENT. Add entry to options test table.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Oct 2022 17:45:02 +0200 |
parents | e3d5781c7ec6 |
children | 39f96b1e7b8d |
comparison
equal
deleted
inserted
replaced
30858:15bd708a797d | 30859:e4240d068787 |
---|---|
4117 // If 'equalprg' is empty, do the indenting internally. | 4117 // If 'equalprg' is empty, do the indenting internally. |
4118 if (oap->op_type == OP_INDENT && *get_equalprg() == NUL) | 4118 if (oap->op_type == OP_INDENT && *get_equalprg() == NUL) |
4119 { | 4119 { |
4120 if (curbuf->b_p_lisp) | 4120 if (curbuf->b_p_lisp) |
4121 { | 4121 { |
4122 op_reindent(oap, get_lisp_indent); | 4122 #ifdef FEAT_EVAL |
4123 if (use_indentexpr_for_lisp()) | |
4124 op_reindent(oap, get_expr_indent); | |
4125 else | |
4126 #endif | |
4127 op_reindent(oap, get_lisp_indent); | |
4123 break; | 4128 break; |
4124 } | 4129 } |
4125 op_reindent(oap, | 4130 op_reindent(oap, |
4126 #ifdef FEAT_EVAL | 4131 #ifdef FEAT_EVAL |
4127 *curbuf->b_p_inde != NUL ? get_expr_indent : | 4132 *curbuf->b_p_inde != NUL ? get_expr_indent : |