aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-14 20:48:05 +0800
committerGitHub <noreply@github.com>2022-05-14 20:48:05 +0800
commitd547e21f9edfb600c8a55a23db1ad847d35b53a0 (patch)
tree7e3015b0c62bc523f8171c905caffea99b6903d8 /src/nvim/ops.c
parent99f3e74fc27acb0d9d9f32161e18b5a474697074 (diff)
parentdca0412d378131ca6c8a64f7adb8937493c43883 (diff)
downloadrneovim-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/ops.c')
-rw-r--r--src/nvim/ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 7b3895333b..1342b10bf8 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -2507,10 +2507,7 @@ int op_change(oparg_T *oap)
l = oap->start.col;
if (oap->motion_type == kMTLineWise) {
l = 0;
- if (!p_paste && curbuf->b_p_si
- && !curbuf->b_p_cin) {
- can_si = true; // It's like opening a new line, do si
- }
+ can_si = may_do_si(); // Like opening a new line, do smart indent
}
// First delete the text in the region. In an empty buffer only need to