commit | d0a1dee3f197d41434df4cf0271066b6aeb690fc | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Dec 20 13:07:48 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Dec 20 13:07:48 2020 +0100 |
tree | 94367a53ea0c68ae5fa0e506424f366feaa9b92e | |
parent | 8f22f5c3aa0aa96e3843a57f29405625d8514c74 [diff] [blame] |
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 #7504)
diff --git a/src/ops.c b/src/ops.c index b83394e..743bdd4 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -938,6 +938,7 @@ 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);