aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-16 08:56:26 +0800
committerGitHub <noreply@github.com>2022-10-16 08:56:26 +0800
commit0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b (patch)
treeba17ea551188576f660573127e34275f87dc54b0 /src/nvim/ops.c
parentbc798dfd8cea9a5f93461e05dcb8409b6d96afc0 (diff)
parentc8fbf39d474b1140bee10edbcf36305ea49bf863 (diff)
downloadrneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.tar.gz
rneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.tar.bz2
rneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.zip
Merge pull request #20677 from zeertzjq/vim-9.0.0761
vim-patch:9.0.{0761,0762,0764}: 'lispoptions'
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 71e754537d..29008200a7 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -6206,7 +6206,11 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
// If 'equalprg' is empty, do the indenting internally.
if (oap->op_type == OP_INDENT && *get_equalprg() == NUL) {
if (curbuf->b_p_lisp) {
- op_reindent(oap, get_lisp_indent);
+ if (use_indentexpr_for_lisp()) {
+ op_reindent(oap, get_expr_indent);
+ } else {
+ op_reindent(oap, get_lisp_indent);
+ }
break;
}
op_reindent(oap,