File->Revert resets view to beginning of document instead of keeping line position
Submitted by Guillaume Chazarain
Please describe the problem: File->Revert sets the line number to the one saved in the metadata. This line number is visible in the status bar, but the text display is actually at the top of the file. Entering something in the text makes the window scroll down to the saved line position in the metadata.
Steps to reproduce:
- Load a file
- Set the cursor near the end of the document
Actual results: The file is displayed from the beginning, but the cursor is in the saved metadata position.
Expected results: The cursor should be on the same line it was before the revert, and the text display should have this line in the center.
Does this happen every time? Yes.
Other information: A patch is coming :-)