diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-09-17 10:47:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 10:47:17 -0400 |
commit | d56002f7b722facd97b0958e141c8ed2d01495f7 (patch) | |
tree | 46e0a3bc02ba86b08e5dbf0cfeae7e615fae5b21 /src/nvim/ops.c | |
parent | 867e8885991ae450019c18aa5e42546bd4b62c2c (diff) | |
parent | 1e0d563967d139dfe5f42993c90f888c5a48c634 (diff) | |
download | rneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.tar.gz rneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.tar.bz2 rneovim-d56002f7b722facd97b0958e141c8ed2d01495f7.zip |
Merge pull request #15364 from seandewar/vim-8.2.3337
vim-patch:8.2.{3286,3289,3293,3298,3313,3321,3328,3330,3331,3337,3354,3355,3357,3360,3369,3375}
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 10a099eb47..e344bb5e77 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1725,7 +1725,9 @@ int op_delete(oparg_T *oap) (int)oap->line_count-1, n, deleted_bytes, 0, 0, 0, kExtmarkUndo); } - auto_format(false, true); + if (oap->op_type == OP_DELETE) { + auto_format(false, true); + } } msgmore(curbuf->b_ml.ml_line_count - old_lcount); @@ -2486,6 +2488,7 @@ int op_change(oparg_T *oap) xfree(ins_text); } } + auto_format(false, true); return retval; } |