0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-12-20 13:07:48 +01:00
parent 8f22f5c3aa
commit d0a1dee3f1
3 changed files with 15 additions and 0 deletions

View File

@@ -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);