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/change.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/change.c')
-rw-r--r-- | src/nvim/change.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index b15e90e0bc..091e9b2830 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -963,8 +963,7 @@ int open_line(int dir, int flags, int second_line_indent, bool *did_do_comment) char_u *p; char_u saved_char = NUL; // init for GCC pos_T *pos; - bool do_si = (!p_paste && curbuf->b_p_si && !curbuf->b_p_cin - && *curbuf->b_p_inde == NUL); + bool do_si = may_do_si(); bool do_cindent; bool no_si = false; // reset did_si afterwards int first_char = NUL; // init for GCC |