Ticket #997 (reopened defect)
clean up before saving should not reset cursor position
| Reported by: | zenogantner | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | editor | Version: | 0.95 |
| Keywords: | save, clean-up, usability, cursor position | Cc: |
Description
If the preference "Clean up file content on saving (for supported document types)" is set, the cursor is moved to the start of the file after the clean up.
This should not happen, the cursor should remain at (or at least near if directly affected by the clean-up) its original position.
Change History
comment:1 Changed 14 months ago by bowtie
- Status changed from new to closed
- Resolution set to not relevant
comment:2 Changed 14 months ago by zenogantner
- Status changed from closed to reopened
- Version changed from 0.69 to 0.95
- Resolution not relevant deleted
This still happens. Let me explain in more detail.
Set "Clean up file content on saving (for supported document types)".
Then edit a large file where clean-up is supported, for example a Perl document, e.g. lib/Padre.pm.
Go into the middle of the file, make some changes, e.g. by leaving a trailing space at the end of the line.
Then save.
The file will be cleaned up, but the cursor is set to the start of the file.
This usually not what you want, you save while you are working on the file, and you usually want to stay at that position.
