diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-14 20:48:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 20:48:05 +0800 |
commit | d547e21f9edfb600c8a55a23db1ad847d35b53a0 (patch) | |
tree | 7e3015b0c62bc523f8171c905caffea99b6903d8 /src/nvim/indent.c | |
parent | 99f3e74fc27acb0d9d9f32161e18b5a474697074 (diff) | |
parent | dca0412d378131ca6c8a64f7adb8937493c43883 (diff) | |
download | rneovim-d547e21f9edfb600c8a55a23db1ad847d35b53a0.tar.gz rneovim-d547e21f9edfb600c8a55a23db1ad847d35b53a0.tar.bz2 rneovim-d547e21f9edfb600c8a55a23db1ad847d35b53a0.zip |
Merge pull request #18567 from zeertzjq/vim-8.2.4951
vim-patch:8.2.{4951,4953}: with 'si' inserting char after completion goes wrong
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index 1c4486b67d..faf6f2dc8f 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -522,6 +522,11 @@ int inindent(int extra) } } +/// @return true if the conditions are OK for smart indenting. +bool may_do_si(void) +{ + return curbuf->b_p_si && !curbuf->b_p_cin && *curbuf->b_p_inde == NUL && !p_paste; +} // Get indent level from 'indentexpr'. int get_expr_indent(void) |