pretty printer can break match
expression into multiple lines, breaking edit
round-trip
#1744
Labels
match
expression into multiple lines, breaking edit
round-trip
#1744
I have the following function in my codebase:
Note that the
match takeTiles currUnflipped startingPlayerTileCount with
does not have a line break in the match expression.For some reason when I
edit
this term out, the following gets written:Note that there is now a line break in that match expression mentioned before, leading to an immediate parsing error:
No matter how I change the screen sizes, both of the terminal
ucm
is running in or of my open text file, theedit
result in the text file always has that line break. However, If I change the terminal width to be small enough thenview
will show that line break.I tried reproducing this with a smaller example:
And with small enough terminal widths I can observe the line break behavior there:
However, I cannot reproduce the linebreak in what
edit
writes, even with this contrived example:I'm not sure what about my
newGame
function above triggers this, so I hope you don't mind that I've provided it in its entirety.The text was updated successfully, but these errors were encountered: