diff src/ops.c @ 23241:87acfcf65a2e v8.2.2166

patch 8.2.2166: auto format doesn't work when deleting text Commit: https://github.com/vim/vim/commit/d0a1dee3f197d41434df4cf0271066b6aeb690fc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 20 13:07:48 2020 +0100 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 https://github.com/vim/vim/issues/7504)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Dec 2020 13:15:04 +0100
parents 473a1413d09b
children 5b4db8035d1d
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -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);