diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-20 13:07:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-20 13:07:48 +0100 |
commit | d0a1dee3f197d41434df4cf0271066b6aeb690fc (patch) | |
tree | 94367a53ea0c68ae5fa0e506424f366feaa9b92e /src/ops.c | |
parent | 8f22f5c3aa0aa96e3843a57f29405625d8514c74 (diff) | |
download | vim-git-d0a1dee3f197d41434df4cf0271066b6aeb690fc.tar.gz |
patch 8.2.2166: auto format doesn't work when deleting textv8.2.2166
Problem: Auto format doesn't work when deleting text.
Solution: Make "x" trigger auto format. (closes #7504)
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -938,6 +938,7 @@ op_delete(oparg_T *oap) curwin->w_cursor = curpos; // restore curwin->w_cursor (void)do_join(2, FALSE, FALSE, FALSE, FALSE); } + auto_format(FALSE, TRUE); } msgmore(curbuf->b_ml.ml_line_count - old_lcount); |