Undo and Redo skipping to strange locations inside file
Moderators: AmigoJack, bbadmin, helios, MudGuard
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
Undo and Redo skipping to strange locations inside file
Hi,
I've been unable to find a simple way to reproduce this but, after editing a file for a while, here and there, and Undoing the changes you've made, the cursor doesn't go directly to the row and undo the previous thing you did. Instead the cursos goes to some random line and after pressing Undo (I always user just CTRL-Z) one more time you get to the row where the undoing is done. When you are done with undoing and redo (CTRL-Y) the cursor goes to these same wrong places before going to the correct row.
This does not happen if you open a file, make changes here and there and then undo/redo. You have to work with the file for a while, say 5-10 minutes.
This happens on every file I work with, .asp, .xsl. I'm using 4.7.2 but this problem has been on Textpad also in all previous versions.
Has anyone else seen this kind of behaviour?
Br,
Jussi
I've been unable to find a simple way to reproduce this but, after editing a file for a while, here and there, and Undoing the changes you've made, the cursor doesn't go directly to the row and undo the previous thing you did. Instead the cursos goes to some random line and after pressing Undo (I always user just CTRL-Z) one more time you get to the row where the undoing is done. When you are done with undoing and redo (CTRL-Y) the cursor goes to these same wrong places before going to the correct row.
This does not happen if you open a file, make changes here and there and then undo/redo. You have to work with the file for a while, say 5-10 minutes.
This happens on every file I work with, .asp, .xsl. I'm using 4.7.2 but this problem has been on Textpad also in all previous versions.
Has anyone else seen this kind of behaviour?
Br,
Jussi
- MudGuard
- Posts: 1295
- Joined: Sun Mar 02, 2003 10:15 pm
- Location: Munich, Germany
- Contact:
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
No find/replace operations done, and in that case I think would be able to see how the replacement operation would be undone. When the cursor jumps to strange location inside the file, it does nothing there.MudGuard wrote:Did you do any find/replace-operations when this happens?
It'd be great if someone could figure out how to reproduce this, I've been trying (inactively) for many years :/
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
No, it's actually not the previous line you worked on. It might be a line where I've never even been to.mo wrote:I have also seen this behavior. I figured the cursor was jumping back to the previous worked on line, but have not paid close attention.
E.g., right now I have one .xsl file open. I type "!!!" on this line (number 64) and save. Then I press CTRL-Z and "!!!" is undone. Then I press CTRL-Z one more time and the cursor jumps to line 4, I've never even been to that line or edited anything even near that line. Then I press CTRL-Y and the cursor jumps to the end of the document, line 127, never been there, nor edited that line either. One more time pressing CTRL-Y finally redoes "!!!".
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
I'm unable to confirm or produce this on my system.
Could you post a part of your .xsl file, or all of it if it's small and without any private data?
What document class and syntax file are you using for your .xsl documents?
I'm using TP472 on WinXPsp1.
Could you post a part of your .xsl file, or all of it if it's small and without any private data?
What document class and syntax file are you using for your .xsl documents?
I'm using TP472 on WinXPsp1.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
I'm sorry, but I won't bother posting any files, since the problem isn't related specifically to .xsl files. I'm seeing the same behaviour in .asp files aswell. I'm also unable to reproduce the behaviour until I have been editing the file for several minutes.s_reynisson wrote:Could you post a part of your .xsl file, or all of it if it's small and without any private data?
What document class and syntax file are you using for your .xsl documents?
I'm using TP472 on WinXPsp1.
For .xsl I'm using xslfo.syn by Pavel Zampach.
For .asp files I'm using asp3.syn by Alex Savitsky.
Both are downloaded from Textpad site.
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Created a doc class XHTML that uses xslfo.syn by Pavel Zampach for syntax highlighting.
Created a small xsl file, worked on it for 10 or 20 minutes, saved it a few times. Ctrl-Z works ok.
Any other program on your system using Ctrl-Z/Y, ie. overriding it somehow?
Can you get this with just TP running on your system?
Created a small xsl file, worked on it for 10 or 20 minutes, saved it a few times. Ctrl-Z works ok.
Any other program on your system using Ctrl-Z/Y, ie. overriding it somehow?
Can you get this with just TP running on your system?
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
Was your xsl file at least 127 lines in length? (actually, never mind that, just witnessed this on a file with only 50 lines)s_reynisson wrote:Created a doc class XHTML that uses xslfo.syn by Pavel Zampach for syntax highlighting.
Created a small xsl file, worked on it for 10 or 20 minutes, saved it a few times. Ctrl-Z works ok.
Any other program on your system using Ctrl-Z/Y, ie. overriding it somehow?
Can you get this with just TP running on your system?
There shouldn't be any programs overriding those commands and this occurred also on my previous computer.
When I edit a file the process includes fairly large amount of Undoing and Redoing. I also user CTRL-S to save my work very much and keep on ALT-TAB:ing to my browser and back all the time. I also have several files open in Textpad (4.7.2) and switch between them with CTRL-TAB.
Now, here it is again. I had 2 files open for testing purposes only, made some changes to them both and cursor got wild on one of the documents. Could this be related to having several documents open at the same time? But now, after closing Textpad, opening the same files and trying to repro it, everything works fine.
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Well, consider me out of this one. One last straw though, here are my settings
for Configure->Preferences->Editor, I have ticked the boxes for:
- Constrain the cursor to the text
- Automatically terminate the last line of the file
- Enable drag and drop editing
I seem to remember a problem related the option to Automatically terminate
the last line of the file.
I'm assuming the new doc class uses other default settings from doc class default.
I did try the two files open, alt-tabbing to IE, files were 50 to 150 lines. Ctrl-Z was ok.
for Configure->Preferences->Editor, I have ticked the boxes for:
- Constrain the cursor to the text
- Automatically terminate the last line of the file
- Enable drag and drop editing
I seem to remember a problem related the option to Automatically terminate
the last line of the file.
I'm assuming the new doc class uses other default settings from doc class default.
I did try the two files open, alt-tabbing to IE, files were 50 to 150 lines. Ctrl-Z was ok.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- helios
- Posts: 711
- Joined: Sun Mar 02, 2003 5:52 pm
- Location: Helios Software Solutions
- Contact:
You may be seeing this behaviour with the cursor, if you have saved the file prior to using the Undo function, and one of the following Preference settings is enabled:
"Strip trailing spaces from lines when saving", and "Save with hard breaks" on the Document class Options page, and "Convert existing tabs to spaces when saving files" on the Tabulation page
The Undo function will also undo those actions, so cursor could end up at one of those places.
"Strip trailing spaces from lines when saving", and "Save with hard breaks" on the Document class Options page, and "Convert existing tabs to spaces when saving files" on the Tabulation page
The Undo function will also undo those actions, so cursor could end up at one of those places.
Helios Software Solutions
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
- jpalo
- Posts: 7
- Joined: Tue Oct 07, 2003 1:14 pm
- Location: Funland
I will try this and report back as soon as I know if unchecking those makes any difference. I have a feeling "Strip trailing spaces from lines when saving" might have something to do with this since I think the cursor always jumped to the end of the line...must confirm that though.helios wrote:You may be seeing this behaviour with the cursor, if you have saved the file prior to using the Undo function, and one of the following Preference settings is enabled:
"Strip trailing spaces from lines when saving", and "Save with hard breaks" on the Document class Options page, and "Convert existing tabs to spaces when saving files" on the Tabulation page.