NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Editor "changed" flag and undo operations


Joined: 13 Jul 2004
Posts: 10
Reply with quote
PHPEd: 3.3.1 build 3358 licensed version

I think, there are some bugs in the editor:

When opening a file and just moving around there the editor without changing anything, the editor thinks after some moves (e.g. 2 or 3 times page down etc.), the file was modified and displays the asterisk next to the filename in the corresponding tab. However - when closing the file then, PHPEd does not ask to save it.

This is really confusing, as you never know, which files are really changed and which of them just look like to be changed.

Another strange thing is the way how "undo" works: It does not really undo the last edit, but just undos the last "action", where "action" also includes moving around with the cursor. This is really confusing and i don't know any other editor which behaves that way.

Any plans to change this in future versions?
View user's profileFind all posts by AWelzelSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Quote:
When opening a file and just moving around there the editor without changing anything, the editor thinks after some moves (e.g. 2 or 3 times page down etc.), the file was modified and displays the asterisk next to the filename in the corresponding tab.


It's not a bug. Some of the lines may contain trailing spaces at their ends. If you have "Keep Trailing Blanks" unchecked, phped removes these spaces when you leave corresponding line. Therefore your file gets modified which is correctly marked in the file tab. Also, should be noted that "Optimal Fill" when checked optimizes beginning spaces to equivalent number of spaces and tabs which leads to modifications too.

Quote:
... However - when closing the file then, PHPEd does not ask to save it.

It's not a problem. Take a look at tools->settings->IDE->Auto Save Files
If this option is checked, PhpED saves the files automatically.

Quote:
Another strange thing is the way how "undo" works: It does not really undo the last edit, but just undos the last "action", where "action" also includes moving around with the cursor


That's correct. If you have "Group Undo" option checked it behaves just like you described.

You see no changes are required and the editor is flexible to full extends and can fit all your needs Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Editor "changed" flag and undo operations
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic