white wrote:- Select two files and open the Compare contents dialog (menu Files/Compare By Content).
- Edit the contents of a file (actually change something).
- Save the file.
- Close the Compare By Content dialog.
- The selection of the two files is gone. Why? (When nothing is changed the selection is not gone.)
- Restore selection (menu Mark/Restore selection).
Which files are selected?
(Answer: files that were selected even before the two compared files were selected)
I think it's not a good idea to keep the last two files selected after one of them are edited. Can be dangerous. You can test functionality with edited file, without exit. Just save.
If you want, continue editing after the button "compare" (from left-up corner) is pressed.
Now is an other ask:
I want to keep the last cursor position!
If you wrote about selected files for "compare by content" in same panel, I agree your point of view about the last "restore" selection, but files must still remain unselected after exit from 'Compare by content'.
Anyway, first look is between two files with the same name and often it's not necessary to select the files into opposite panel.
Best wishes,