The current logic after gofmt just returns to the column, which I have found to be annoying, if the line was changed before the point. I have tried to implement a heuristic that keeps the point on whatever it was editing. It's not prefect, so it quite liberally falls back onto the older mechanism. It also keeps the point in the column, in case the line is erased by gofmt.
The current logic after gofmt just returns to the column, which I have found to be annoying, if the line was changed before the point. I have tried to implement a heuristic that keeps the point on whatever it was editing. It's not prefect, so it quite liberally falls back onto the older mechanism. It also keeps the point in the column, in case the line is erased by gofmt.