mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:58:15 +08:00

Prior to this change, when emitting gap text (comments, newlines, etc), fish_indent would use the indentation of the text at the end of the gap. But this has the wrong result for this case: begin command # comment end as the comment would get the indent of the 'end'. Instead use the indent computed for the gap text itself. Addresses one case of #7252.