mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
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)
d0a1dee3f1
This commit is contained in:
@@ -3716,7 +3716,7 @@ static bool ins_compl_prep(int c)
|
||||
retval = true;
|
||||
}
|
||||
|
||||
auto_format(FALSE, TRUE);
|
||||
auto_format(false, true);
|
||||
|
||||
// Trigger the CompleteDonePre event to give scripts a chance to
|
||||
// act upon the completion before clearing the info, and restore
|
||||
@@ -6503,7 +6503,7 @@ stop_insert (
|
||||
curwin->w_cursor = tpos;
|
||||
}
|
||||
|
||||
auto_format(TRUE, FALSE);
|
||||
auto_format(true, false);
|
||||
|
||||
if (ascii_iswhite(cc)) {
|
||||
if (gchar_cursor() != NUL)
|
||||
|
Reference in New Issue
Block a user