NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Undo Broken (b5022)


Joined: 23 Aug 2005
Posts: 44
Reply with quote
This is the second time I have noticed this, so I have determined it is not a bug. Twice now I have made about 30 lines of edits to a file, and then used Undo to reverse them all. Both times I have gotten all kinds of left over code.

For example, my original code was something like:

Code:
<h2>Content</h2>


Then I changed it to:

Code:
<?
if (...) { ... } else { ... }
?>
<h2>Content</h2>


When I undid all of my changes I was left with:

Code:
?     f (      els   >
<h2>Content</h2>


Again, these aren't the exact snippets I worked with, but approximations.
View user's profileFind all posts by willbondSend private message


Joined: 14 Apr 2007
Posts: 96
Reply with quote
Another yet related issue was that lines that were indented before an undo ended up with no indentation on a redo. Dmitri had this to say:


Please check "keep trailing blanks" in the editor settings.
When this option is not checked, editor deletes spaces and tabs in non-undoable manner and that's why they are not restored. Make hidden character shown (View->Show Hiddent Characters) and try to replicate the problem again and you'll see that tabs are deleted when you leave the line.

That fixed the indentation problem, but not the issues in the previous posts above.

-r
View user's profileFind all posts by rodericksimpsonSend private message


Joined: 23 Aug 2005
Posts: 44
Reply with quote
I am still having issues with this in b5028.
View user's profileFind all posts by willbondSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Quote:
I am still having issues with this in b5028

We are aware of this problem but it can't be fixed in version 5.0 without huge changes in the editor. We planned them for the next major release.
Meanwhile, as a workaround please do not turn on OPTIMAL FILL and do not turn off KEEP TRAILING BLANKS.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Undo Broken (b5022)
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