aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-20 17:01:31 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-20 17:03:36 -0500
commit06869a6940ea6943ba5e652d08e3062626fe47e9 (patch)
tree7f02d0460a82233a1bb7e739a2f0593b4f0a7bbd /src/nvim/ops.c
parent0476f049f4f259cf172e0390f4dc655209ea0c34 (diff)
downloadrneovim-06869a6940ea6943ba5e652d08e3062626fe47e9.tar.gz
rneovim-06869a6940ea6943ba5e652d08e3062626fe47e9.tar.bz2
rneovim-06869a6940ea6943ba5e652d08e3062626fe47e9.zip
vim-patch:8.2.2166: auto format doesn't work when deleting text
Problem: Auto format doesn't work when deleting text. Solution: Make "x" trigger auto format. (closes vim/vim#7504) https://github.com/vim/vim/commit/d0a1dee3f197d41434df4cf0271066b6aeb690fc
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 40dd5f0b5c..37db1bb7e2 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1683,6 +1683,7 @@ int op_delete(oparg_T *oap)
(int)oap->line_count-1, n, deleted_bytes,
0, 0, 0, kExtmarkUndo);
}
+ auto_format(false, true);
}
msgmore(curbuf->b_ml.ml_line_count - old_lcount);