Opened 4 years ago

Last modified 2 years ago

#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 (2)

comment:1 Changed 2 years ago by bowtie

  • Resolution set to not relevant
  • Status changed from new to closed

comment:2 Changed 2 years ago by zenogantner

  • Resolution not relevant deleted
  • Status changed from closed to reopened
  • Version changed from 0.69 to 0.95

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.

Note: See TracTickets for help on using tickets.