Undo seems a bit questionable at times?

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
AlanStewart

Undo seems a bit questionable at times?

Post by AlanStewart »

Hello! I'm trying out the forum. Lemme know if I've posted this to the wrong spot.

Frequently I've been editing away and realized that I've done something schtupid and go to do Undo but it seems that Undo *sometimes* gets confused about what it was I just did. Sometimes it moves all around like it's forgotten that I've just deleted something, sometimes it'll insert stuff that I didn't actually delete from where it's at, sometimes it'll delete stuff that I didn't just insert. Not all the time mind, just *some* times. Is there any thing I can keep an eye out for to help figure out exactly what it's getting confused about? It could be that this is a memory issue with Windows XP of course. I have also noticed that sometimes my buffer gets confused about what is really on the screen and I have to refresh things to get it to appear properly. Well, except for that one time that it actually *did* lose some of the contents of my file, but I blame that on Windows.

On another note, I did just notice the drop-down lists in the Search/Replace UI that inserts RegEx's for common things. THANK YOU! I have an absolute ***** of a time remember what those are and this will save me *SUCH* a huge amount of headaches.

Alan Stewart
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Alan,

Over the years there have been one or two reported problems with the undo/redo feature. On these occasions the issues related to some rather unusual combinations of editing/inserting/deleting actions. I suspect that the undo/redo bug you have found is similar to these.

The only problem is that without a definitive set of steps to replicate the bug it is very difficult to fix :(

Cheers Jussi
AlanStewart

Try this?

Post by AlanStewart »

Put this line in a file by itself:
newCards (PString sCards, int hand, PString desc)

Then hit F6 and do a regex s'n'r using these strings:
"(PString)"
"\0 &"

The idea is to replace PString with PString & to turn things into pass-by-reference instead of pass-by-value which ends up calling the copy constructor about 1000 times more than necessary.

1) I end up with "PString PString" instead of "PString &".

2) I then go and do the Undo and the cursor doesn't move the way I would expect it to. It's okay, but it's not 100%.

Lemme know if this works/doesn't work for you.

Thanks,
Alan Stewart
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Alan,

I see what you mean about the undo. This will be fixed in the next patch ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This bug is fixed by the latest Zeus patch found here: http://www.zeusedit.com/forum/viewtopic.php?t=736

Cheers Jussi
alan_m
Posts: 31
Joined: Fri Jun 02, 2006 12:44 pm

Post by alan_m »

Hi Jussi,
How do I apply the latest patch? Do i need to perform an uninstall first of the existing zeus?

regards

Alan.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Just backup the current exe and dll files, download the zip file from the link below:

http://www.zeusedit.com/forum/viewtopic.php?t=736

and replace the current files with the ones from the zip file.

Cheers Jussi
alan_m
Posts: 31
Joined: Fri Jun 02, 2006 12:44 pm

Post by alan_m »

thanks for that
Post Reply