mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58: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:
@@ -1683,6 +1683,7 @@ int op_delete(oparg_T *oap)
|
||||
(int)oap->line_count-1, n, deleted_bytes,
|
||||
0, 0, 0, kExtmarkUndo);
|
||||
}
|
||||
auto_format(false, true);
|
||||
}
|
||||
|
||||
msgmore(curbuf->b_ml.ml_line_count - old_lcount);
|
||||
|
Reference in New Issue
Block a user