mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00

This patch preserves indentation in comments. It work by removing the
explicit 3-space indentation and replaces with with an expression which
uses the current value with a minimum of three spaces.
Discussed in the mailing list:
https://groups.google.com/g/vim_dev/c/rn8ZLDrCbYU
Thanks to Friedrich Romstedt for reporting and Christian Brabandt for
investigating the issue.
closes: vim/vim#18566
64c8105867
Co-authored-by: Marshall Ward <marshall.ward@gmail.com>